deliveryhero/helm-charts

[stable/locust] ingress annotation - YAML parse error on locust/templates/master-ingress.yaml: error unmarshaling JSON

bhoslepu opened this issue · 1 comments

Trying to add annotation to ingress:
helm upgrade --install -f values.yaml local deliveryhero/locust --set ingress.annotations.cert-manager\.io/cluster-issuer="letsencrypt"

Getting below error:
Error: UPGRADE FAILED: YAML parse error on locust/templates/master-ingress.yaml: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal object into Go struct field .metadata.annotations of type string

Versions:
helm: v3.9.4
k8s: v1.22.0

Resolved issue by adding double quote to key as well:
helm upgrade --install -f values.yaml local deliveryhero/locust --set ingress.annotations."cert-manager\.io/cluster-issuer"="letsencrypt"