Related to #6619
Expected Behavior
Previously calls to local would use the default .kube/config that allowed commands run by local to access multiple clusters.
Current Behavior
As of v0.36.0 these commands fail with "context x does not exist".
Steps to Reproduce
To reproduce the error you'd need a full client that depends on multiple clusters. A minimal reproduction would be to check env to see if KUBECONFIG is set or not. It should be unset so that it uses the default kube config file.
Context
Could we get an option or some other way to disable this behaviour?
The current workaround I found was to use
env = {"KUBECONFIG": os.getenv("KUBECONFIG", "")}
That seems to work for now, but I'm not sure if it will continue to work in the future.
Related to #6619
Expected Behavior
Previously calls to
localwould use the default.kube/configthat allowed commands run bylocalto access multiple clusters.Current Behavior
As of v0.36.0 these commands fail with "context x does not exist".
Steps to Reproduce
To reproduce the error you'd need a full client that depends on multiple clusters. A minimal reproduction would be to check
envto see ifKUBECONFIGis set or not. It should be unset so that it uses the default kube config file.Context
Could we get an option or some other way to disable this behaviour?
The current workaround I found was to use
That seems to work for now, but I'm not sure if it will continue to work in the future.