Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cli.Command{ Name: "mod", Usage: "modify a cluster", ArgsUsage: "[CLUSTER]", Flags: []cli.Flag{ &cli.StringFlag{ Name: "kubeconfig", Usage: "path to kubeconfig from where export context", }, &cli.StringFlag{ Name: "url", Usage: "set the cluster URL", }, }, Action: func(cCtx *cli.Context) error { kc, err := kconf.Open(cCtx.String("kubeconfig")) if err != nil { return err } opts := &kconf.ClustermodOptions{ ServerURL: cCtx.String("url"), } err = kc.Clustermod(cCtx.Args().First(), opts) if err != nil { return err } err = kc.Save() if err != nil { return err } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.