Merge pull request #4520 from chrislovecnm/fix-snake-case

Fix snake case
This commit is contained in:
k8s-ci-robot 2018-02-26 15:12:43 -08:00 committed by GitHub
commit 2e007d44c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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, "=")