diff --git a/pkg/cmd/clusterset/bind/exec.go b/pkg/cmd/clusterset/bind/exec.go index 502558241..4d17d3c20 100644 --- a/pkg/cmd/clusterset/bind/exec.go +++ b/pkg/cmd/clusterset/bind/exec.go @@ -60,7 +60,7 @@ func (o *Options) run() (err error) { _, err = clusterClient.ClusterV1beta1().ManagedClusterSetBindings(o.Namespace).Create(context.TODO(), binding, metav1.CreateOptions{}) if errors.IsAlreadyExists(err) { - fmt.Fprintf(o.Streams.Out, "Clusterset %s is already bound to Clusterset %s\n", o.Namespace, o.Clusterset) + fmt.Fprintf(o.Streams.Out, "Clusterset %s is already bound to Namespace %s\n", o.Clusterset, o.Namespace) return nil } @@ -68,6 +68,6 @@ func (o *Options) run() (err error) { return err } - fmt.Fprintf(o.Streams.Out, "Clusterset %s is bound to Clusterset %s\n", o.Namespace, o.Clusterset) + fmt.Fprintf(o.Streams.Out, "Clusterset %s is bound to Namespace %s\n", o.Clusterset, o.Namespace) return nil } diff --git a/pkg/cmd/create/clusterset/exec.go b/pkg/cmd/create/clusterset/exec.go index 790df6811..d7da76d18 100644 --- a/pkg/cmd/create/clusterset/exec.go +++ b/pkg/cmd/create/clusterset/exec.go @@ -49,7 +49,7 @@ func (o *Options) runWithClient(clusterClient clusterclientset.Interface, _, err := clusterClient.ClusterV1beta1().ManagedClusterSets().Get(context.TODO(), clusterset, metav1.GetOptions{}) if err == nil { - fmt.Fprintf(o.Streams.Out, "Clusterset %s is created already\n", clusterset) + fmt.Fprintf(o.Streams.Out, "Clusterset %s is already created\n", clusterset) return nil }