File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
commands/operator-sdk/cmd/up Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ func upLocal() {
126
126
}
127
127
128
128
func upLocalAnsible () {
129
+ // Set the kubeconfig that the manager will be able to grab
130
+ os .Setenv (k8sutil .KubeConfigEnvVar , kubeConfig )
129
131
mgr , err := manager .New (config .GetConfigOrDie (), manager.Options {Namespace : namespace })
130
132
if err != nil {
131
133
log .Fatal (err )
Original file line number Diff line number Diff line change 15
15
package k8sutil
16
16
17
17
const (
18
- // KubeConfigEnvVar defines the env variable KUBERNETES_CONFIG which
18
+ // KubeConfigEnvVar defines the env variable KUBECONFIG which
19
19
// contains the kubeconfig file path.
20
- KubeConfigEnvVar = "KUBERNETES_CONFIG "
20
+ KubeConfigEnvVar = "KUBECONFIG "
21
21
22
22
// WatchNamespaceEnvVar is the constant for env variable WATCH_NAMESPACE
23
23
// which is the namespace that the pod is currently running in.
You can’t perform that action at this time.
0 commit comments