mirror of
https://github.com/docker/compose.git
synced 2025-07-24 06:04:57 +02:00
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:
parent
849707016b
commit
61a3f6faa5
@ -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 = "k8s"
|
KubeContextType = "kube"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -41,7 +41,7 @@ $ docker context create k8s CONTEXT [flags]
|
|||||||
func createKubeCommand() *cobra.Command {
|
func createKubeCommand() *cobra.Command {
|
||||||
var opts kube.ContextParams
|
var opts kube.ContextParams
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "k8s 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