Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add update cmd for Pulsar Functions (#33)
Add update cmd for Pulsar Functions, output as follows: ``` USED FOR: Update a Pulsar Function that has been deployed to a Pulsar cluster. REQUIRED PERMISSION: This command requires super-user permissions. EXAMPLES: #Update output topic of Pulsar Function pulsarctl functions update --tenant public --namespace default --name update-function --output test-output-topic #Update function config yaml file of Pulsar Function pulsarctl functions update --function-config-file <the path of function config yaml file> --jar <the path of user code jar> #Update log topic of Pulsar Function pulsarctl functions update --log-topic persistent://public/default/test-log-topic # Other function parameters #Update dead letter topic of Pulsar Function pulsarctl functions update --dead-letter-topic persistent://public/default/test-dead-letter-topic --max-message-retries 10 # Other function parameters #Update user config of Pulsar Function pulsarctl functions update --user-config "{"publishTopic":"publishTopic", "key":"pulsar"}" # Other function parameters #Update custom schema of inputs topic for Pulsar Function pulsarctl functions update --custom-schema-inputs "{"topic-1":"schema.STRING", "topic-2":"schema.JSON"}" # Other function parameters #Update schema type of output topic for Pulsar Function pulsarctl functions update --schema-type schema.STRING # Other function parameters #Update parallelism of Pulsar Function pulsarctl functions update --parallelism 1 # Other function parameters #Update resource of Pulsar Function pulsarctl functions update --ram 5656565656 --disk 8080808080808080 --cpu 5.0 # Other function parameters #Update window functions config of Pulsar Function pulsarctl functions update --window-length-count 10 --window-length-duration-ms 1000 --sliding-interval-count 3 --sliding-interval-duration-ms 1000 # Other function parameters OUTPUT: #normal output Updated successfully #Update contains no change [✖] code: 400 reason: Update contains no change #The name of Pulsar Functions doesn't exist, please check the --name args [✖] code: 404 reason: Function <your function name> doesn't exist Usage: pulsarctl functions update [flags] Aliases: update, update ```
- Loading branch information