rename context to kubernetes

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2021-01-19 15:23:20 +01:00
parent 50792c4621
commit f291b77902
2 changed files with 5 additions and 5 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 = "kube"
KubeContextType = "kubernetes"
)
const (

View File

@ -33,16 +33,16 @@ import (
func init() {
extraCommands = append(extraCommands, createKubeCommand)
extraHelp = append(extraHelp, `
Create a Kube context:
$ docker context create kube CONTEXT [flags]
(see docker context create kube --help)
Create a Kubernetes context:
$ docker context create kubernetes CONTEXT [flags]
(see docker context create kubernetes --help)
`)
}
func createKubeCommand() *cobra.Command {
var opts kube.ContextParams
cmd := &cobra.Command{
Use: "kube 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 {