-
Notifications
You must be signed in to change notification settings - Fork 70
Add ns-isolation-policy commands for pulsarctl #88
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
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
|
@sijie PTAL |
|
ping @sijie PTAL |
pkg/ctl/nsisolationpolicy/broker.go
Outdated
| var examples []pulsar.Example | ||
| create := pulsar.Example{ | ||
| Desc: "Get broker with namespace-isolation policies attached to it", | ||
| Command: "pulsarctl ns-isolation-policy broker (cluster-name) --broker (broker address)", |
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.
can we remove --broker to simplify it with ns-isolation-policy broker (cluster-name) (broker)?
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.
can we remove
--brokerto simplify it withns-isolation-policy broker (cluster-name) (broker)?
Sure, will fix it.
pkg/ctl/nsisolationpolicy/util.go
Outdated
| "strings" | ||
| ) | ||
|
|
||
| func convert(value string) (map[string]string, error) { |
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.
is this a general util function?
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.
Yes, will move it to utils package.
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
|
Done @sijie PTAL again, thanks. |
…l#88) Add `ns-isolation-policy` commands for pulsarctl - set - get - list - delete - brokers - broker
…l#88) Add `ns-isolation-policy` commands for pulsarctl - set - get - list - delete - brokers - broker
Signed-off-by: xiaolong.ran ranxiaolong716@gmail.com
Add
ns-isolation-policycommands for pulsarctl