Skip to content

Commit f0f5219

Browse files
committed
cmd/catalog: Default to the /home/tflannag/.kube/config environment variable
Update the catalog operator and default to the $KUBECONFIG environment variable value when the --kubeconfig flag hasn't been provided. This mirrors the same way that the olm operator (e.g. controller-runtime is handling this check under-the-hood) behaves. Signed-off-by: timflannagan <[email protected]>
1 parent bfe8f0f commit f0f5219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/catalog/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const (
3838
// config flags defined globally so that they appear on the test binary as well
3939
var (
4040
kubeConfigPath = flag.String(
41-
"kubeconfig", "", "absolute path to the kubeconfig file")
41+
"kubeconfig", os.Getenv("KUBECONFIG"), "absolute path to the kubeconfig file")
4242

4343
wakeupInterval = flag.Duration(
4444
"interval", defaultWakeupInterval, "wakeup interval")

0 commit comments

Comments
 (0)