From cf54b65f675878f2659d82259fc014fa994e1c0d Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 22 Jan 2024 19:30:02 +0000 Subject: [PATCH 1/2] feat: add support for pod labels --- helm/templates/service.yaml | 3 +++ helm/values.yaml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml index 1c646ac..5e41f83 100644 --- a/helm/templates/service.yaml +++ b/helm/templates/service.yaml @@ -43,6 +43,9 @@ spec: metadata: labels: app.kubernetes.io/instance: {{ .Release.Name }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.name | quote }} restartPolicy: Always diff --git a/helm/values.yaml b/helm/values.yaml index 9b33e86..dafe7d2 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -48,3 +48,8 @@ serviceAccount: # nodeSelector -- Node labels for constraining the coder-logstream pod to specific nodes. nodeSelector: {} + +# labels -- The pod labels for coder-logstream-kube. See: +# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +podLabels: + eric: is awesome From befdc48d9586e733356ff31e087cfc9a9240342b Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Thu, 15 Feb 2024 02:32:21 +0000 Subject: [PATCH 2/2] fixup label support --- helm/templates/service.yaml | 2 +- helm/values.yaml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml index 5e41f83..fb91404 100644 --- a/helm/templates/service.yaml +++ b/helm/templates/service.yaml @@ -43,7 +43,7 @@ spec: metadata: labels: app.kubernetes.io/instance: {{ .Release.Name }} - {{- with .Values.podLabels }} + {{- with .Values.labels }} {{- toYaml . | nindent 8 }} {{- end }} spec: diff --git a/helm/values.yaml b/helm/values.yaml index dafe7d2..6a548b6 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -51,5 +51,4 @@ nodeSelector: {} # labels -- The pod labels for coder-logstream-kube. See: # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ -podLabels: - eric: is awesome +labels: {}