Skip to content

Conversation

@wolfstudy
Copy link
Contributor

@wolfstudy wolfstudy commented Oct 16, 2019

Signed-off-by: xiaolong.ran ranxiaolong716@gmail.com

Add ns-isolation-policy commands for pulsarctl

  • set
  • get
  • list
  • delete
  • brokers
  • broker

Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
@sijie sijie mentioned this pull request Oct 16, 2019
29 tasks
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
@wolfstudy wolfstudy self-assigned this Oct 17, 2019
@wolfstudy wolfstudy requested review from sijie and zymap October 17, 2019 02:22
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
@wolfstudy
Copy link
Contributor Author

@sijie PTAL

@wolfstudy
Copy link
Contributor Author

ping @sijie PTAL

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)",
Copy link
Member

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)?

Copy link
Contributor Author

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)?

Sure, will fix it.

"strings"
)

func convert(value string) (map[string]string, error) {
Copy link
Member

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?

Copy link
Contributor Author

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>
@wolfstudy
Copy link
Contributor Author

Done @sijie PTAL again, thanks.

@wolfstudy wolfstudy added this to the 0.0.1 milestone Oct 18, 2019
@sijie sijie merged commit fcdda33 into master Oct 24, 2019
@sijie sijie deleted the xiaolong/ns-isolation-policy branch October 24, 2019 05:27
tisonkun pushed a commit to tisonkun/pulsar-client-go that referenced this pull request Aug 15, 2023
…l#88)

Add `ns-isolation-policy` commands for pulsarctl

- set
- get
- list
- delete
- brokers
- broker
tisonkun pushed a commit to apache/pulsar-client-go that referenced this pull request Aug 16, 2023
…l#88)

Add `ns-isolation-policy` commands for pulsarctl

- set
- get
- list
- delete
- brokers
- broker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants