Skip to content

Commit a78840d

Browse files
committed
fix: add missing podLabels attribute to templates
1 parent 1b4c83b commit a78840d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
labels:
2323
{{- include "garm.labels" . | nindent 8 }}
2424
app.kubernetes.io/component: server
25+
{{- with .Values.podLabels }}
26+
{{- toYaml . | nindent 8 }}
27+
{{- end }}
2528
spec:
2629
{{- if and .Values.garm.tls.enabled .Values.garm.url }}
2730
# The hostAlias below is added to solve a chicken-and-egg problem

templates/job-operator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
{{- end }}
1919
labels:
2020
app.kubernetes.io/component: operator
21+
{{- with .Values.podLabels }}
22+
{{- toYaml . | nindent 8 }}
23+
{{- end }}
2124
spec:
2225
restartPolicy: OnFailure
2326
serviceAccountName: {{ include "garm.serviceAccountName" . }}

values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ serviceAccount:
7575

7676
## -- Annotations for both the server and operator Pods.
7777
podAnnotations: {}
78-
## -- Labels for the Pod.
78+
## -- Labels for both the server and operator Pods.
7979
podLabels: {}
8080

8181
## -- Service configuration.

0 commit comments

Comments
 (0)