Skip to content

Commit

Permalink
typo issues (#440)
Browse files Browse the repository at this point in the history
Signed-off-by: hchenxa <[email protected]>
  • Loading branch information
hchenxa authored Jun 18, 2024
1 parent 055f41d commit 6ba687a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/addon/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func NewCmd(clusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags, stream
cmd := &cobra.Command{
Use: "addon",
Short: "addon options",
Long: "there are 2 addon options: enable and disable",
Long: "there are 3 addon options: create, enable and disable",
}

cmd.AddCommand(enable.NewCmd(clusteradmFlags, streams))
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/addon/disable/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewCmd(clusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags, stream
}

o.ClusterOptions.AddFlags(cmd.Flags())
cmd.Flags().StringSliceVar(&o.Names, "names", []string{}, "Names of the add-on to deploy (comma separated)")
cmd.Flags().StringSliceVar(&o.Names, "names", []string{}, "Names of the add-on to disable (comma separated)")

return cmd
}
2 changes: 1 addition & 1 deletion pkg/cmd/addon/enable/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func NewCmd(clusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags, stream

o.ClusterOptions.AddFlags(cmd.Flags())
cmd.Flags().StringSliceVar(&o.Names, "names", []string{}, "Names of the add-on to deploy (comma separated)")
cmd.Flags().StringVarP(&o.Namespace, "namespace", "n", "open-cluster-management-agent-addon", "Specified namespace to addon addon")
cmd.Flags().StringVarP(&o.Namespace, "namespace", "n", "open-cluster-management-agent-addon", "Specified namespace to deploy addon")
cmd.Flags().StringVar(&o.OutputFile, "output-file", "", "The generated resources will be copied in the specified file")
cmd.Flags().StringSliceVar(&o.Annotate, "annotate", []string{}, "Annotations to add to the ManagedClusterAddon (eg. key1=value1,key2=value2)")

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/clusterset/bind/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func NewCmd(clusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags, stream
cmd := &cobra.Command{
Use: "bind",
Short: "bind a clusterset to a namespace",
Long: "bind a clusterset to a namespace to make it a workspace namespace. " +
"Note that the namespace SHALL NOT be an existing cluster namespace " +
Long: "bind a clusterset to a namespace to make it a 'workspace namespace'. " +
"Note that the namespace SHALL NOT be an existing 'cluster namespace' " +
"(i.e. the namespace has the same name of a registered managed cluster).",
Example: fmt.Sprintf(example, clusteradmhelpers.GetExampleHeader()),
SilenceUsage: true,
Expand Down

0 comments on commit 6ba687a

Please sign in to comment.