Skip to content

Commit 449e05a

Browse files
committed
fix big when running ws command with kubeconfig flags
Signed-off-by: olalekan odukoya <[email protected]>
1 parent 0d641dd commit 449e05a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cli/pkg/base/options.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,7 @@ func (o *Options) Complete() error {
7575
loadingRules := clientcmd.NewDefaultClientConfigLoadingRules()
7676
loadingRules.ExplicitPath = o.Kubeconfig
7777

78-
startingConfig, err := loadingRules.GetStartingConfig()
79-
if err != nil {
80-
return err
81-
}
82-
83-
o.ClientConfig = clientcmd.NewDefaultClientConfig(*startingConfig, o.KubectlOverrides)
78+
o.ClientConfig = clientcmd.NewNonInteractiveDeferredLoadingClientConfig(loadingRules, o.KubectlOverrides)
8479
}
8580

8681
return nil

0 commit comments

Comments
 (0)