GitHub user szindel closed a discussion: example pulsar-admin function create 
with secrets defined in env vars

Hey all,

I'm trying to use the pulsar admin cli to create a pulsar function that has 
secrets in its Context from env vars. However I find that there are no good 
docs or examples to be found and hope to find it here. 

bin/pulsar-admin functions create \
--jar \
--classname \
--tenant \
--namespace \
--name \
--secrets-provider-classname 
org.apache.pulsar.functions.secretsprovider.EnvironmentBasedSecretsProvider \
--secrets '{"secret_name": "env_var"}'

This is more or less what im attempting, however I keep getting:

" Was passed main parameter '--secrets-provider-classname' but no main 
parameter was defined in your arg class "

kind regards

GitHub link: https://github.com/apache/pulsar/discussions/23244

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to