mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[template] Add commonLabels to pod templates (#14806)
* [template] Add commonLabels to pod templates --------- Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
@@ -28,6 +28,9 @@ spec:
|
||||
{{- if .Values.%%MAIN_OBJECT_BLOCK%%.podLabels }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.%%MAIN_OBJECT_BLOCK%%.podLabels "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.commonLabels }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
serviceAccountName: {{ template "%%TEMPLATE_NAME%%.serviceAccountName" . }}
|
||||
{{- include "%%TEMPLATE_NAME%%.imagePullSecrets" . | nindent 6 }}
|
||||
|
||||
@@ -31,6 +31,9 @@ spec:
|
||||
{{- if .Values.%%MAIN_OBJECT_BLOCK%%.podLabels }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.%%MAIN_OBJECT_BLOCK%%.podLabels "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.commonLabels }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
serviceAccountName: {{ template "%%TEMPLATE_NAME%%.serviceAccountName" . }}
|
||||
{{- include "%%TEMPLATE_NAME%%.imagePullSecrets" . | nindent 6 }}
|
||||
|
||||
@@ -33,6 +33,9 @@ spec:
|
||||
{{- if .Values.%%MAIN_OBJECT_BLOCK%%.podLabels }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.%%MAIN_OBJECT_BLOCK%%.podLabels "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.commonLabels }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
serviceAccountName: {{ template "%%TEMPLATE_NAME%%.serviceAccountName" . }}
|
||||
{{- include "%%TEMPLATE_NAME%%.imagePullSecrets" . | nindent 6 }}
|
||||
|
||||
Reference in New Issue
Block a user