temporalio / helm-charts

Temporal Helm charts
MIT License
294 stars 321 forks source link

[Bug] helm-template fails when enabling serviceAccount #380

Closed crhuber closed 1 year ago

crhuber commented 1 year ago

What are you really trying to do?

I am trying to get the server pods to use a serviceAccount.

Describe the bug

In the values file I added the following with no other changes

serviceAccount:
  create: true

And I get the following error after running helm template

helm template temporal-server -f values.yaml .

Error: YAML parse error on temporal/templates/server-deployment.yaml: error converting YAML to JSON: yaml: line 36: mapping values are not allowed in this context

Minimal Reproduction

git clone https://github.com/temporalio/helm-charts
cd helm-charts/
vi values.yaml 
# add serviceAccount.create=true
helm dependency build
helm template temporal-server -f values.yaml .

returns:

Error: YAML parse error on temporal/templates/server-deployment.yaml: error converting YAML to JSON: yaml: line 36: mapping values are not allowed in this context

Environment/Versions