diff --git a/README.md b/README.md index fa973ff59..5bc12841d 100644 --- a/README.md +++ b/README.md @@ -90,10 +90,10 @@ Accept the CSRs on the hub to approve the spoke clusters to join the hub. Install specific built-in add-on(s) to the hub cluster. -`clusteradm install addons --names application-manager` +`clusteradm install addon --names application-manager` ### enable addons Enable specific add-on(s) agent deployment to the given managed clusters of the specify namespace -`clusteradm enable addons --names application-manager --ns namespace --clusters , ,....` \ No newline at end of file +`clusteradm addon enable --names application-manager --namespace --cluster ,,....` diff --git a/pkg/cmd/accept/exec.go b/pkg/cmd/accept/exec.go index 8d0256bf0..ccd935163 100644 --- a/pkg/cmd/accept/exec.go +++ b/pkg/cmd/accept/exec.go @@ -99,6 +99,7 @@ func (o *Options) accept(kubeClient *kubernetes.Clientset, clusterClient *cluste return false, err } if csrApproved && mcUpdated { + fmt.Printf("\n Your managed cluster %s has joined the Hub successfully. Visit https://open-cluster-management.io/scenarios or https://github.com/open-cluster-management-io/OCM/tree/main/solutions for next steps.\n", clusterName) return true, nil } return false, nil diff --git a/pkg/cmd/addon/enable/cmd.go b/pkg/cmd/addon/enable/cmd.go index cef7edbe5..d750f358e 100644 --- a/pkg/cmd/addon/enable/cmd.go +++ b/pkg/cmd/addon/enable/cmd.go @@ -13,7 +13,7 @@ import ( var example = ` # Enable addon on a cluster in speccified a namespace -%[1]s addon enable --name application-manager --ns namespace --cluster cluster1,cluster2 +%[1]s addon enable --name application-manager --namespace namespace --cluster cluster1,cluster2 ` // NewCmd...