From 6ba687a73cf1c57855a390b75b003355a8f34b6e Mon Sep 17 00:00:00 2001 From: Hui Chen Date: Tue, 18 Jun 2024 16:20:02 +0800 Subject: [PATCH] typo issues (#440) Signed-off-by: hchenxa --- pkg/cmd/addon/cmd.go | 2 +- pkg/cmd/addon/disable/cmd.go | 2 +- pkg/cmd/addon/enable/cmd.go | 2 +- pkg/cmd/clusterset/bind/cmd.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/cmd/addon/cmd.go b/pkg/cmd/addon/cmd.go index 1e5cfe360..06ac1c1fb 100644 --- a/pkg/cmd/addon/cmd.go +++ b/pkg/cmd/addon/cmd.go @@ -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)) diff --git a/pkg/cmd/addon/disable/cmd.go b/pkg/cmd/addon/disable/cmd.go index 6ab31b8ff..2549ffad2 100644 --- a/pkg/cmd/addon/disable/cmd.go +++ b/pkg/cmd/addon/disable/cmd.go @@ -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 } diff --git a/pkg/cmd/addon/enable/cmd.go b/pkg/cmd/addon/enable/cmd.go index 03954b8f3..57756eead 100644 --- a/pkg/cmd/addon/enable/cmd.go +++ b/pkg/cmd/addon/enable/cmd.go @@ -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)") diff --git a/pkg/cmd/clusterset/bind/cmd.go b/pkg/cmd/clusterset/bind/cmd.go index 9f8fe7225..6d3bdfaf0 100644 --- a/pkg/cmd/clusterset/bind/cmd.go +++ b/pkg/cmd/clusterset/bind/cmd.go @@ -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,