Skip to content

Commit

Permalink
fix(k8s): fix typo in arg name (#970)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Cyvoct <pcyvoct@scaleway.com>
  • Loading branch information
Sh4d1 authored Apr 29, 2020
1 parent 4b1338a commit fb28d93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/namespaces/k8s/v1/custom_kubeconfig_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const (
)

type k8sKubeconfigInstallRequest struct {
ClusterID string
Region scw.Region
KeepCurentContext bool
ClusterID string
Region scw.Region
KeepCurrentContext bool
}

func k8sKubeconfigInstallCommand() *core.Command {
Expand Down Expand Up @@ -160,7 +160,7 @@ func k8sKubeconfigInstallRun(ctx context.Context, argsI interface{}) (i interfac
}

// set the current context to the new one
if !request.KeepCurentContext {
if !request.KeepCurrentContext {
existingKubeconfig.CurrentContext = kubeconfig.Contexts[0].Name + "-" + request.ClusterID
}

Expand Down

0 comments on commit fb28d93

Please sign in to comment.