Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Assigning Multiple Pod Labels via Helm Chart #181

Open
karthiktumu opened this issue Jun 13, 2024 · 0 comments
Open

Support Assigning Multiple Pod Labels via Helm Chart #181

karthiktumu opened this issue Jun 13, 2024 · 0 comments

Comments

@karthiktumu
Copy link

The current helm chart supports adding only one Pod label via the helm chart.

Below is our values file and error we're seeing when trying to assign multiple pod labels

Values.yaml

octopus:
   pods:
      labels:
         key1: value1
         key2: value2
         key3: value3

Error

Error: YAML parse error on octopusdeploy-helm/templates/statefulset.yaml: error converting YAML to JSON: yaml: line 26: mapping values are not allowed in this context

The helm chart statefulset template has to be changed as below

Current Pod Labels Block

      {{- if .Values.octopus.pods.labels }}
      {{ toYaml .Values.octopus.pods.labels | indent 2 }}
      {{- end }}

Proposed Pod Labels Block

      {{- with .Values.octopus.pods.labels }}
      {{ toYaml . | indent 2 }}
      {{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant