cannot marshal secrets passed in yaml file correctly
Closed this issue · 0 comments
jiangpengcheng commented
with below format secrets in a yaml file:
---
secrets:
snowflake:
path: "devint-snowflake-gmbx"
key: "password"
questionPro:
path: "questionpro-cx-api-key"
key: "api_key"
it will reports below error when creating function:
❯ pulsarctl functions create --jar function://public/default/java-function@1.0 --name package-java-fn --classname org.apache.pulsar.functions.api.examples.ExclamationFunction --inputs persistent://public/default/package-java-fn-input --output persistent://public/default/java-function@1.0 --cpu 0.1 --function-config-file test.yaml
error: json: unsupported type: map[interface {}]interface {}
[✖] json: unsupported type: map[interface {}]interface {}