diff --git a/cli/cmd/context/create_kube.go b/cli/cmd/context/create_kube.go index 24a91d489..5e2260f65 100644 --- a/cli/cmd/context/create_kube.go +++ b/cli/cmd/context/create_kube.go @@ -20,7 +20,6 @@ package context import ( "context" - "fmt" "github.com/pkg/errors" "github.com/spf13/cobra" @@ -74,13 +73,8 @@ func runCreateKube(ctx context.Context, contextName string, opts kube.ContextPar } func createContextData(ctx context.Context, opts kube.ContextParams) (interface{}, string, error) { - description := "" - if opts.Description != "" { - description = fmt.Sprintf("%s (%s)", opts.Description, description) - } - return store.KubeContext{ Endpoint: opts.Endpoint, FromEnvironment: opts.FromEnvironment, - }, description, nil + }, opts.Description, nil } diff --git a/kube/backend.go b/kube/backend.go index aa10cd884..2954c807a 100644 --- a/kube/backend.go +++ b/kube/backend.go @@ -44,7 +44,6 @@ func init() { } func service(ctx context.Context) (backend.Service, error) { - contextStore := store.ContextStore(ctx) currentContext := apicontext.CurrentContext(ctx) var kubeContext store.KubeContext