Skip to content

Commit 469903c

Browse files
brykcheld
authored andcommitted
Load apiserver config the same way kubectl does it (#710)
Now it parses kubeconfig files when present Try running `./dist/amd64/dashboard`. It should get info from your kubectl file and use it.
1 parent 64b321a commit 469903c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/backend/client/apiserverclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func CreateApiserverClient(apiserverHost string) (*client.Client, clientcmd.Clie
4747
}
4848

4949
clientConfig := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(
50-
&clientcmd.ClientConfigLoadingRules{}, overrides)
50+
clientcmd.NewDefaultClientConfigLoadingRules(), overrides)
5151

5252
cfg, err := clientConfig.ClientConfig()
5353
cfg.QPS = defaultQPS

0 commit comments

Comments
 (0)