Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 6429370

Browse files
committed
fix
1 parent 9f12da6 commit 6429370

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kubeconfig.go

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func FetchOnlyDefault(conf *api.Config) (*api.Config, error) {
5252
return nil, fmt.Errorf("not found users %q", ctx.AuthInfo)
5353
}
5454
newConf.AuthInfos[ctx.AuthInfo] = auth
55+
newConf.CurrentContext = conf.CurrentContext
5556
return newConf, nil
5657
}
5758

0 commit comments

Comments
 (0)