-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
When running crossplane-diff
without explicitly setting a kubeconfig, the tool fails with an error message that references unsupported flags:
W0926 ... Neither --kubeconfig nor --master was specified...
...
crossplane-diff: error: invalid configuration: no configuration has been provided
This is misleading, because crossplane-diff
does not support the --kubeconfig
flag. Attempting to use it results in:
crossplane-diff: error: unknown flag: --kubeconfig
How can we reproduce it?
-
Run
crossplane-diff diff
without setting theKUBECONFIG
environment variable and without having a default kubeconfig at~/.kube/config
.unset KUBECONFIG crossplane-diff diff
-
Observe the following misleading error message:
Neither --kubeconfig nor --master was specified... crossplane-diff: error: invalid configuration: no configuration has been provided
-
Attempting to use the
--kubeconfig
flag as suggested:crossplane-diff diff --kubeconfig /path/to/config
Results in:
crossplane-diff: error: unknown flag: --kubeconfig
-
Correct behavior is only achieved by setting the
KUBECONFIG
environment variable:export KUBECONFIG=/path/to/config crossplane-diff diff
This reproduces the misleading messaging and the lack of support for the --kubeconfig
flag.
What environment did it happen in?
Crossplane version: v2.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working