Merge pull request #895 from charleszheng44/bug/nil-panic

Bug: when initialzing vk, use empty clientcmd.ConfigOverrides instead of nil
This commit is contained in:
Brian Goff
2020-11-06 14:35:31 -08:00
committed by GitHub

View File

@@ -29,7 +29,7 @@ func ClientsetFromEnv(kubeConfigPath string) (*kubernetes.Clientset, error) {
} else {
config, err = clientcmd.NewNonInteractiveDeferredLoadingClientConfig(
&clientcmd.ClientConfigLoadingRules{ExplicitPath: kubeConfigPath},
nil,
&clientcmd.ConfigOverrides{},
).ClientConfig()
}
} else {