mirror of https://github.com/kubernetes/kops.git
Merge pull request #4520 from chrislovecnm/fix-snake-case
Fix snake case
This commit is contained in:
commit
2e007d44c7
|
@ -26,12 +26,12 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
set_long = templates.LongDesc(i18n.T(`Set a configuration field.
|
||||
setLong = templates.LongDesc(i18n.T(`Set a configuration field.
|
||||
|
||||
kops set does not update the cloud resources, to apply the changes use "kops update cluster".
|
||||
`))
|
||||
|
||||
set_example = templates.Examples(i18n.T(`
|
||||
setExample = templates.Examples(i18n.T(`
|
||||
# Set cluster to run kubernetes version 1.10.0
|
||||
kops set cluster k8s-cluster.example.com cluster.spec.kubernetesVersion=1.10.0
|
||||
`))
|
||||
|
@ -41,8 +41,8 @@ func NewCmdSet(f *util.Factory, out io.Writer) *cobra.Command {
|
|||
cmd := &cobra.Command{
|
||||
Use: "set",
|
||||
Short: i18n.T("Set fields on clusters and other resources."),
|
||||
Long: set_long,
|
||||
Example: set_example,
|
||||
Long: setLong,
|
||||
Example: setExample,
|
||||
}
|
||||
|
||||
// create subcommands
|
||||
|
|
|
@ -30,13 +30,13 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
set_cluster_long = templates.LongDesc(i18n.T(`Set a cluster field value.
|
||||
setClusterLong = templates.LongDesc(i18n.T(`Set a cluster field value.
|
||||
|
||||
This command changes the desired cluster configuration in the registry.
|
||||
|
||||
kops set does not update the cloud resources, to apply the changes use "kops update cluster".`))
|
||||
|
||||
set_cluster_example = templates.Examples(i18n.T(`
|
||||
setClusterExample = templates.Examples(i18n.T(`
|
||||
# Set cluster to run kubernetes version 1.10.0
|
||||
kops set cluster k8s.cluster.site spec.kubernetesVersion=1.10.0
|
||||
`))
|
||||
|
@ -49,8 +49,8 @@ func NewCmdSetCluster(f *util.Factory, out io.Writer) *cobra.Command {
|
|||
cmd := &cobra.Command{
|
||||
Use: "cluster",
|
||||
Short: i18n.T("Set cluster fields."),
|
||||
Long: set_cluster_long,
|
||||
Example: set_cluster_example,
|
||||
Long: setClusterLong,
|
||||
Example: setClusterExample,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
for i, arg := range args {
|
||||
index := strings.Index(arg, "=")
|
||||
|
|
Loading…
Reference in New Issue