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

Commit 68b29f5

Browse files
author
aiordache
committed
small fixes
Signed-off-by: aiordache <[email protected]>
1 parent f291b77 commit 68b29f5

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

cli/cmd/context/create_kube.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ package context
2020

2121
import (
2222
"context"
23-
"fmt"
2423

2524
"github.com/pkg/errors"
2625
"github.com/spf13/cobra"
@@ -74,13 +73,8 @@ func runCreateKube(ctx context.Context, contextName string, opts kube.ContextPar
7473
}
7574

7675
func createContextData(ctx context.Context, opts kube.ContextParams) (interface{}, string, error) {
77-
description := ""
78-
if opts.Description != "" {
79-
description = fmt.Sprintf("%s (%s)", opts.Description, description)
80-
}
81-
8276
return store.KubeContext{
8377
Endpoint: opts.Endpoint,
8478
FromEnvironment: opts.FromEnvironment,
85-
}, description, nil
79+
}, opts.Description, nil
8680
}

kube/backend.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ func init() {
4444
}
4545

4646
func service(ctx context.Context) (backend.Service, error) {
47-
4847
contextStore := store.ContextStore(ctx)
4948
currentContext := apicontext.CurrentContext(ctx)
5049
var kubeContext store.KubeContext

0 commit comments

Comments
 (0)