From 61a3f6faa58fc822a0fe3fafd3dde9f711855ae0 Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Tue, 26 Jan 2021 16:40:18 +0100 Subject: [PATCH] =?UTF-8?q?Keep=20=E2=80=9Ckubernetes=E2=80=9D=20in=20`doc?= =?UTF-8?q?ker=20context=20create=20kubernetes=20mycontext`=20UX.=20We=20c?= =?UTF-8?q?annot=20use=20=E2=80=9Ckubernetes=E2=80=9D=20as=20an=20endpoint?= =?UTF-8?q?=20name,=20because=20the=20context=20Marshall/unmarshall=20has?= =?UTF-8?q?=20a=20specific=20logic=20for=20the=20=E2=80=9Ckubernetes?= =?UTF-8?q?=E2=80=9D=20endpoint,=20so=20storing=20=E2=80=9Ckube=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guillaume Tardif --- api/context/store/store.go | 2 +- cli/cmd/context/create_kube.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/context/store/store.go b/api/context/store/store.go index ba0135958..5427f7529 100644 --- a/api/context/store/store.go +++ b/api/context/store/store.go @@ -57,7 +57,7 @@ const ( LocalContextType = "local" // KubeContextType is the endpoint key in the context endpoints for a new // kube backend - KubeContextType = "k8s" + KubeContextType = "kube" ) const ( diff --git a/cli/cmd/context/create_kube.go b/cli/cmd/context/create_kube.go index d10bdd82c..b42370e9a 100644 --- a/cli/cmd/context/create_kube.go +++ b/cli/cmd/context/create_kube.go @@ -41,7 +41,7 @@ $ docker context create k8s CONTEXT [flags] func createKubeCommand() *cobra.Command { var opts kube.ContextParams cmd := &cobra.Command{ - Use: "k8s CONTEXT [flags]", + Use: "kubernetes CONTEXT [flags]", Short: "Create context for a Kubernetes Cluster", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error {