Skip to content

Commit

Permalink
make the clusteradm join output msg more clear
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
skeeey committed Jun 26, 2024
1 parent 261c92a commit 9bcaec8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/cmd/init/scenario/init/bootstrap_cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ rules:
resources:
- "managedclustersets/join"
verbs:
- "create"

- "create"
3 changes: 2 additions & 1 deletion pkg/cmd/join/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ func (o *Options) run() error {
}
}

fmt.Fprintf(o.Streams.Out, "Please log onto the hub cluster and run the following command:\n\n"+
fmt.Fprintf(o.Streams.Out, "\nYour managed cluster %s has joined the Hub.\n", o.values.ClusterName)
fmt.Fprintf(o.Streams.Out, "If the ManagedClusterAutoApproval feature is not enabled, Please log onto the hub cluster and run the following command:\n\n"+
" %s accept --clusters %s\n\n", helpers.GetExampleHeader(), o.values.ClusterName)
return nil

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ rules:
resources:
- "managedclustersets/join"
verbs:
- "create"
- "create"

0 comments on commit 9bcaec8

Please sign in to comment.