Skip to content

Commit

Permalink
Allow specifying pod labels and annotations in Helm chart (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasstockner authored Aug 25, 2022
1 parent 9714fda commit 2d27081
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm/sloop/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
labels:
app.kubernetes.io/name: {{ .Values.name }}
app.kubernetes.io/instance: "{{ .Release.Name }}"
{{ toYaml .Values.podLabels | indent 8 }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
spec:
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions helm/sloop/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
serviceAccountName: sloop
## If defined, specifies the tolerations to attach to the pods
tolerations: []
## If defined, specifies the labels and/or annotations to attach to the pods
podLabels: {}
podAnnotations: {}
name: sloop
replicas: 1
image:
Expand Down

0 comments on commit 2d27081

Please sign in to comment.