kubeconfig: add explicit path, if specified to loading precedence

Kubernetes-commit: 7c8e4c83fbe66548aeb446562c29c42efe1d4386
This commit is contained in:
Maciej Szulik
2020-07-21 15:45:36 +02:00
committed by Kubernetes Publisher
parent 68bb4a9525
commit 87661a7415
4 changed files with 52 additions and 2 deletions

View File

@@ -288,7 +288,7 @@ func TestModifyContext(t *testing.T) {
// there should now be two contexts
if len(startingConfig.Contexts) != len(expectedCtx) {
t.Fatalf("unexpected nuber of contexts, expecting %v, but found %v", len(expectedCtx), len(startingConfig.Contexts))
t.Fatalf("unexpected number of contexts, expecting %v, but found %v", len(expectedCtx), len(startingConfig.Contexts))
}
for key := range startingConfig.Contexts {