snapcrafters / helm

Unofficial Helm installer for Linux
https://snapcraft.io/helm
MIT License
36 stars 26 forks source link

Bad flag syntax when installing with snap helm #16

Closed gfenn-newbury closed 6 years ago

gfenn-newbury commented 6 years ago

Related Issues

Related issue: https://github.com/appscode/stash/issues/538

The problem

The appscode/stash chart is installed with the following command:

helm install appscode/stash --namespace kube-system --name stash-operator --version 0.7.0 \
  --set apiserver.ca="$(onessl get kube-ca)" \
  --set apiserver.enableValidatingWebhook=true \
  --set apiserver.enableMutatingWebhook=true

When using the binary located at helm repo, the chart installs on a K8s cluster successfully. However, when using helm obtained through snap install helm, the following error occurs:

Error: bad flag syntax: -----END

The only part of the helm install ... command which has a string -----END is $(onessl get kube-ca), which gets the kube-ca certificate. The command would output:

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

Therefore, I hypothesise that something in the snap install helm installation is causing --set apiserver.ca=$(onessl get kube-ca)" to be treated as a flag.

gfenn-newbury commented 6 years ago

It would appear as though this is an issue with the chart or helm in general, and not specifically the snap version helm: https://github.com/appscode/stash/issues/538#issuecomment-410691255 Closing issue for now