kubernetes: fix context load test

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
pull/1451/head
CrazyMax 2 years ago
parent f451b455c4
commit af24d72dd8
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

@ -13,7 +13,7 @@ import (
func TestDefaultContextInitializer(t *testing.T) {
os.Setenv("KUBECONFIG", "./fixtures/test-kubeconfig")
defer os.Unsetenv("KUBECONFIG")
ctx, err := command.ResolveDefaultContext(&cliflags.CommonOptions{}, command.DefaultContextStoreConfig())
ctx, err := command.ResolveDefaultContext(&cliflags.ClientOptions{}, command.DefaultContextStoreConfig())
require.NoError(t, err)
assert.Equal(t, "default", ctx.Meta.Name)
assert.Equal(t, "zoinx", ctx.Meta.Endpoints[KubernetesEndpoint].(EndpointMeta).DefaultNamespace)

Loading…
Cancel
Save