-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add source command for pulsarctl #45
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>
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.
Please check the permissions.
@@ -8,7 +8,8 @@ import ( | |||
"github.com/streamnative/pulsarctl/pkg/ctl/cluster" | |||
"github.com/streamnative/pulsarctl/pkg/ctl/completion" | |||
"github.com/streamnative/pulsarctl/pkg/ctl/functions" | |||
"github.com/streamnative/pulsarctl/pkg/ctl/tenant" | |||
"github.com/streamnative/pulsarctl/pkg/ctl/sources" |
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.
wrong indent?
pkg/ctl/sources/create.go
Outdated
func createSourcesCmd(vc *cmdutils.VerbCmd) { | ||
desc := pulsar.LongDescription{} | ||
desc.CommandUsedFor = "Submit a Pulsar IO source connector to run in a Pulsar cluster." | ||
desc.CommandPermission = "This command requires super-user permissions." |
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.
why super-user permissions?
pkg/ctl/sources/create.go
Outdated
"\t--name <the name of Pulsar Source> \n" + | ||
"\t--destination-topic-name kafka-topic \n" + | ||
"\t--classname org.apache.pulsar.io.kafka.KafkaBytesSource \n" + | ||
"\t--archive file:/http: + /examples/api-examples.nar", |
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.
this example is confusing. is it file://
or http://
?
pkg/ctl/sources/delete.go
Outdated
func deleteSourcesCmd(vc *cmdutils.VerbCmd) { | ||
desc := pulsar.LongDescription{} | ||
desc.CommandUsedFor = "This command is used for delete a Pulsar IO source connector." | ||
desc.CommandPermission = "This command requires super-user permissions." |
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.
please check if the permission is correct?
pkg/ctl/sources/delete.go
Outdated
|
||
func deleteSourcesCmd(vc *cmdutils.VerbCmd) { | ||
desc := pulsar.LongDescription{} | ||
desc.CommandUsedFor = "This command is used for delete a Pulsar IO source connector." |
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.
desc.CommandUsedFor = "This command is used for delete a Pulsar IO source connector." | |
desc.CommandUsedFor = "This command is used for deleting a Pulsar IO source connector." |
pkg/ctl/sources/get.go
Outdated
func getSourcesCmd(vc *cmdutils.VerbCmd) { | ||
desc := pulsar.LongDescription{} | ||
desc.CommandUsedFor = "Gets the information about a Pulsar IO source connector" | ||
desc.CommandPermission = "This command requires super-user permissions." |
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.
permission?
pkg/ctl/sources/list.go
Outdated
func listSourcesCmd(vc *cmdutils.VerbCmd) { | ||
desc := pulsar.LongDescription{} | ||
desc.CommandUsedFor = "List all running Pulsar IO source connectors" | ||
desc.CommandPermission = "This command requires super-user permissions." |
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.
permission?
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
@sijie done PTAL again, thanks. |
@wolfstudy please rebase |
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran ranxiaolong716@gmail.com Add source command for pulsarctl - createSourcesCmd - updateSourcesCmd - deleteSourcesCmd - getSourcesCmd - listSourcesCmd - stopSourcesCmd - startSourcesCmd - restartSourcesCmd - statusSourcesCmd
Signed-off-by: xiaolong.ran ranxiaolong716@gmail.com Add source command for pulsarctl - createSourcesCmd - updateSourcesCmd - deleteSourcesCmd - getSourcesCmd - listSourcesCmd - stopSourcesCmd - startSourcesCmd - restartSourcesCmd - statusSourcesCmd
Signed-off-by: xiaolong.ran ranxiaolong716@gmail.com
Add source command for
pulsarctl