arkade
arkade copied to clipboard
Can't pass comma separated values to --set in arkade install
Can't pass comma separated values to --set in arkade install
Expected Behaviour
arkade install openfaas \
--set queueWorker.image=alexellis2/pro-queue-worker-demo:0.1.1 \
--set httpRetryCodes=429,502,500,504,408
Current Behaviour
The following error appears:
VALUES values.yaml
Command: /home/alex/.arkade/bin/helm [upgrade --install openfaas openfaas/openfaas --namespace openfaas --values /tmp/charts/openfaas/values.yaml --set gateway.directFunctions=false --set queueWorker.image=alexellis2/pro-queue-worker-demo:0.1.1 --set ingressOperator.create=false --set httpRetryCodes=429,502,500,504,408 --set basicAuthPlugin.replicas=1 --set queueWorker.replicas=1 --set queueWorker.maxInflight=1 --set basic_auth=true --set serviceType=NodePort --set clusterRole=false --set operator.create=false --set openfaasImagePullPolicy=IfNotPresent --set faasnetes.imagePullPolicy=Always --set gateway.replicas=1]
Error: failed parsing --set data: key "502" has no value (cannot end with ,)
Error: exit code 1, stderr: Error: failed parsing --set data: key "502" has no value (cannot end with ,)
Possible Solution
Possibly the argument needs to be quoted?
Helm does support arrays and maps being passed as strings, however this is not one - it's just a string that's comma separated.
Steps to Reproduce (for bugs)
As per above
Context
This particular setting cannot be overridden with --set, and it may affect other charts also.
Your Environment
- What Kubernetes distribution are you using?
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.1", GitCommit:"206bcadf021e76c27513500ca24182692aabd17e", GitTreeState:"clean", BuildDate:"2020-09-14T07:30:52Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
- Operating System and version (e.g. Linux, Windows, MacOS):
Linux alex-nuc8 5.4.0-73-generic x86_64 GNU/Linux
cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
- What arkade version is this?
arkade version
HEAD / master