From c37f22ba78149e1988cb0d2be7fb20bb93575fea Mon Sep 17 00:00:00 2001 From: Eric Paulsen Date: Fri, 14 Apr 2023 14:55:38 -0400 Subject: [PATCH] feat(helm): add labels for coder pod (#7139) * feat(helm): add labels for coder pod * feedback & syntax fix * ordering * fix: notation --- helm/templates/coder.yaml | 3 +++ helm/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/helm/templates/coder.yaml b/helm/templates/coder.yaml index 6e5874f753..c7edc9a9c1 100644 --- a/helm/templates/coder.yaml +++ b/helm/templates/coder.yaml @@ -27,6 +27,9 @@ spec: metadata: labels: {{- include "coder.labels" . | nindent 8 }} + {{- with .Values.coder.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} annotations: {{- toYaml .Values.coder.podAnnotations | nindent 8 }} spec: diff --git a/helm/values.yaml b/helm/values.yaml index 1d40168e0e..7fce83add8 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -42,6 +42,10 @@ coder: # https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ podAnnotations: {} + # coder.podLabels -- The Coder pod labels. See: + # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + podLabels: {} + # coder.serviceAccount -- Configuration for the automatically created service # account. Creation of the service account cannot be disabled. serviceAccount: