-
Notifications
You must be signed in to change notification settings - Fork 70
Add command cluster update-peer-clusters
#18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@zymap please rebase this pull request |
e57a55a to
a8eb115
Compare
|
@sijie done. |
sijie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks good. but please improve the output description.
| out = append(out, successOut) | ||
|
|
||
| failOut := pulsar.Output{ | ||
| Desc: "output of doesn't specified a cluster name", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the description here seems to be a bit weird to me. please talk to Yu or Jennifer to help you improve the output message here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. @jennifer88huang @Anonymitaet Could you help me to improve the description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The cluster name is not specified in the output.
or - The output does not specify a cluster name.
Option 1 is preferred.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, thank you.
|
@sijie @jennifer88huang PTAL. |
Master issue: streamnative/pulsarctl#2 output : ``` USED FOR: This command is used for updating peer clusters. REQUIRED PERMISSION: This command requires super-user permissions. EXAMPLES: #updating the <cluster-name> peer clusters pulsarctl clusters update-peer-clusters -p cluster-a,cluster-b <cluster-name> OUTPUT: #normal output <cluster-name> peer clusters updated #output of doesn't specified a cluster name [✖] only one argument is allowed to be used as a name #output of cluster doesn't exist [✖] code: 404 reason: Cluster does not exist Usage: pulsarctl clusters update-peer-clusters [flags] Aliases: update-peer-clusters, upc Update peer clusters flags: -p, --peer-cluster stringArray Cluster to be registered as a peer-cluster of this cluster Common flags: -s, --admin-service-url string The admin web service url that pulsarctl connects to. (default "http://localhost:8080") -C, --color string toggle colorized logs (true,false,fabulous) (default "true") -h, --help help for this command -v, --verbose int set log level, use 0 to silence, 4 for debugging (default 3) Use 'pulsarctl clusters update-peer-clusters [command] --help' for more information about a command. ```
Master issue: streamnative/pulsarctl#2 output : ``` USED FOR: This command is used for updating peer clusters. REQUIRED PERMISSION: This command requires super-user permissions. EXAMPLES: #updating the <cluster-name> peer clusters pulsarctl clusters update-peer-clusters -p cluster-a,cluster-b <cluster-name> OUTPUT: #normal output <cluster-name> peer clusters updated #output of doesn't specified a cluster name [✖] only one argument is allowed to be used as a name #output of cluster doesn't exist [✖] code: 404 reason: Cluster does not exist Usage: pulsarctl clusters update-peer-clusters [flags] Aliases: update-peer-clusters, upc Update peer clusters flags: -p, --peer-cluster stringArray Cluster to be registered as a peer-cluster of this cluster Common flags: -s, --admin-service-url string The admin web service url that pulsarctl connects to. (default "http://localhost:8080") -C, --color string toggle colorized logs (true,false,fabulous) (default "true") -h, --help help for this command -v, --verbose int set log level, use 0 to silence, 4 for debugging (default 3) Use 'pulsarctl clusters update-peer-clusters [command] --help' for more information about a command. ```
Master issue: #2
output :