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

Commit 61a3f6f

Browse files
committed
Keep “kubernetes” in docker context create kubernetes mycontext UX. We cannot use “kubernetes” as an endpoint name, because the context Marshall/unmarshall has a specific logic for the “kubernetes” endpoint, so storing “kube”
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent 8497070 commit 61a3f6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/context/store/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const (
5757
LocalContextType = "local"
5858
// KubeContextType is the endpoint key in the context endpoints for a new
5959
// kube backend
60-
KubeContextType = "k8s"
60+
KubeContextType = "kube"
6161
)
6262

6363
const (

cli/cmd/context/create_kube.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $ docker context create k8s CONTEXT [flags]
4141
func createKubeCommand() *cobra.Command {
4242
var opts kube.ContextParams
4343
cmd := &cobra.Command{
44-
Use: "k8s CONTEXT [flags]",
44+
Use: "kubernetes CONTEXT [flags]",
4545
Short: "Create context for a Kubernetes Cluster",
4646
Args: cobra.ExactArgs(1),
4747
RunE: func(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)