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 <guillaume.tardif@gmail.com>
This commit is contained in:
Guillaume Tardif 2021-01-26 16:40:18 +01:00
parent 849707016b
commit 61a3f6faa5
2 changed files with 2 additions and 2 deletions

View File

@ -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 (

View File

@ -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 {