Skip to content

Commit c37f22b

Browse files
authored
feat(helm): add labels for coder pod (#7139)
* feat(helm): add labels for coder pod * feedback & syntax fix * ordering * fix: notation
1 parent 7063267 commit c37f22b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

helm/templates/coder.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ spec:
2727
metadata:
2828
labels:
2929
{{- include "coder.labels" . | nindent 8 }}
30+
{{- with .Values.coder.podLabels }}
31+
{{- toYaml . | nindent 8 }}
32+
{{- end }}
3033
annotations:
3134
{{- toYaml .Values.coder.podAnnotations | nindent 8 }}
3235
spec:

helm/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ coder:
4242
# https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
4343
podAnnotations: {}
4444

45+
# coder.podLabels -- The Coder pod labels. See:
46+
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
47+
podLabels: {}
48+
4549
# coder.serviceAccount -- Configuration for the automatically created service
4650
# account. Creation of the service account cannot be disabled.
4751
serviceAccount:

0 commit comments

Comments
 (0)