We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78aca05 + 449e05a commit 742ce0eCopy full SHA for 742ce0e
cli/pkg/base/options.go
@@ -75,12 +75,7 @@ func (o *Options) Complete() error {
75
loadingRules := clientcmd.NewDefaultClientConfigLoadingRules()
76
loadingRules.ExplicitPath = o.Kubeconfig
77
78
- startingConfig, err := loadingRules.GetStartingConfig()
79
- if err != nil {
80
- return err
81
- }
82
-
83
- o.ClientConfig = clientcmd.NewDefaultClientConfig(*startingConfig, o.KubectlOverrides)
+ o.ClientConfig = clientcmd.NewNonInteractiveDeferredLoadingClientConfig(loadingRules, o.KubectlOverrides)
84
}
85
86
return nil
0 commit comments