mirror of
https://github.com/docker/compose.git
synced 2025-07-26 07:04:32 +02:00
rename context to kubernetes
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
50792c4621
commit
f291b77902
@ -57,7 +57,7 @@ const (
|
|||||||
LocalContextType = "local"
|
LocalContextType = "local"
|
||||||
// KubeContextType is the endpoint key in the context endpoints for a new
|
// KubeContextType is the endpoint key in the context endpoints for a new
|
||||||
// kube backend
|
// kube backend
|
||||||
KubeContextType = "kube"
|
KubeContextType = "kubernetes"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -33,16 +33,16 @@ import (
|
|||||||
func init() {
|
func init() {
|
||||||
extraCommands = append(extraCommands, createKubeCommand)
|
extraCommands = append(extraCommands, createKubeCommand)
|
||||||
extraHelp = append(extraHelp, `
|
extraHelp = append(extraHelp, `
|
||||||
Create a Kube context:
|
Create a Kubernetes context:
|
||||||
$ docker context create kube CONTEXT [flags]
|
$ docker context create kubernetes CONTEXT [flags]
|
||||||
(see docker context create kube --help)
|
(see docker context create kubernetes --help)
|
||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|
||||||
func createKubeCommand() *cobra.Command {
|
func createKubeCommand() *cobra.Command {
|
||||||
var opts kube.ContextParams
|
var opts kube.ContextParams
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "kube CONTEXT [flags]",
|
Use: "kubernetes CONTEXT [flags]",
|
||||||
Short: "Create context for a Kubernetes Cluster",
|
Short: "Create context for a Kubernetes Cluster",
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user