We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When KUBECONFIG env is specified in the calico-node config, the kubernetes client be created with the specified kubeconfig file.
There are several places in the calico-node where InClusterConfig is used to create the kubernetes client.
calico/node/pkg/lifecycle/startup/startup.go
Line 132 in 3980e3e
Line 332 in 3980e3e
calico/node/pkg/cni/token_watch.go
Line 225 in 3980e3e
calico/node/pkg/lifecycle/shutdown/shutdown.go
Line 46 in 3980e3e
Kubernetes client must be created only from KUBECONFIG env if it is specified
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected Behavior
When KUBECONFIG env is specified in the calico-node config, the kubernetes client be created with the specified kubeconfig file.
Current Behavior
There are several places in the calico-node where InClusterConfig is used to create the kubernetes client.
calico/node/pkg/lifecycle/startup/startup.go
Line 132 in 3980e3e
calico/node/pkg/lifecycle/startup/startup.go
Line 332 in 3980e3e
calico/node/pkg/cni/token_watch.go
Line 225 in 3980e3e
calico/node/pkg/lifecycle/shutdown/shutdown.go
Line 46 in 3980e3e
Possible Solution
Kubernetes client must be created only from KUBECONFIG env if it is specified
The text was updated successfully, but these errors were encountered: