Allow defining labels and annotations per component (#5657)

This commit is contained in:
Salah Al Saleh
2024-06-07 08:12:13 -07:00
committed by GitHub
parent dc6b750424
commit 3fd038fcfe
5 changed files with 48 additions and 0 deletions

View File

@@ -34,10 +34,16 @@ spec:
{{ with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.master.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
{{ with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.master.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
restartPolicy: {{ default .Values.global.restartPolicy .Values.master.restartPolicy }}
{{- if .Values.master.affinity }}