Skip to content

Commit

Permalink
close #126
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeghnag committed Jan 26, 2024
1 parent b948acb commit 472afe1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/ingest-crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ var IngestCRDS = &cobra.Command{
if err != nil {
panic(err)
}
kubeconfigPath := filepath.Join(homeDir, ".kube", "config")
kubeconfigPath := os.Getenv("KUBECONFIG")

if kubeconfigPath == "" {
kubeconfigPath = filepath.Join(homeDir, ".kube", "config")
}
outputDir := filepath.Join(homeDir, ".omc", "customresourcedefinitions")
config, err := clientcmd.BuildConfigFromFlags("", kubeconfigPath)
if err != nil {
Expand Down

0 comments on commit 472afe1

Please sign in to comment.