Skip to content

Commit 2d27081

Browse files
Allow specifying pod labels and annotations in Helm chart (#229)
1 parent 9714fda commit 2d27081

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

helm/sloop/templates/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
labels:
1919
app.kubernetes.io/name: {{ .Values.name }}
2020
app.kubernetes.io/instance: "{{ .Release.Name }}"
21+
{{ toYaml .Values.podLabels | indent 8 }}
22+
annotations:
23+
{{ toYaml .Values.podAnnotations | indent 8 }}
2124
spec:
2225
tolerations:
2326
{{ toYaml .Values.tolerations | indent 8 }}

helm/sloop/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
serviceAccountName: sloop
22
## If defined, specifies the tolerations to attach to the pods
33
tolerations: []
4+
## If defined, specifies the labels and/or annotations to attach to the pods
5+
podLabels: {}
6+
podAnnotations: {}
47
name: sloop
58
replicas: 1
69
image:

0 commit comments

Comments
 (0)