Skip to content

Commit

Permalink
chore: add common labels and annotations to pods (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisingal authored Sep 24, 2024
1 parent 19d0530 commit 86caa79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion helm/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ spec:
metadata:
labels:
release: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.commonPodLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.commonPodAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
Expand Down
4 changes: 4 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobLabels:
podLabels:
app: config-bootstrapper

commonPodLabels: {}

commonPodAnnotations: {}

# The Deployment Selector match labels are different from the pod labels. Note that they should be a subset of the pod
# labels. You append new labels to them but cannot remove labels. If you remove or modify the labels you will need to
# delete the existing deployment bearing the same name and then redeploy. This is the reason why they are separated from
Expand Down

0 comments on commit 86caa79

Please sign in to comment.