diff options
Diffstat (limited to 'kubernetes/common/postgres-init/templates/job.yaml')
-rw-r--r-- | kubernetes/common/postgres-init/templates/job.yaml | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/kubernetes/common/postgres-init/templates/job.yaml b/kubernetes/common/postgres-init/templates/job.yaml index a2f7e12274..c7b1cb2052 100644 --- a/kubernetes/common/postgres-init/templates/job.yaml +++ b/kubernetes/common/postgres-init/templates/job.yaml @@ -19,24 +19,18 @@ kind: Job metadata: name: {{ include "common.fullname" . }}-config-job namespace: {{ include "common.namespace" . }} - labels: - app: {{ include "common.name" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ include "common.release" . }} - heritage: {{ .Release.Service }} + labels: {{- include "common.labels" . | nindent 4 }} + {{- if .Values.jobAnnotations }} + annotations: {{- include "common.tplValue" (dict "value" .Values.jobAnnotations "context" $) | nindent 4 }} + {{- end }} spec: backoffLimit: 20 template: metadata: - annotations: - # Workarround to exclude K8S API from istio communication - # as init-container (readinessCheck) does not work with the - # Istio CNI plugin, see: - # (https://istio.io/latest/docs/setup/additional-setup/cni/#compatibility-with-application-init-containers) - traffic.sidecar.istio.io/excludeOutboundPorts: "443" - labels: - app: {{ include "common.name" . }} - release: {{ include "common.release" . }} + {{- if .Values.jobPodAnnotations }} + annotations: {{- include "common.tplValue" (dict "value" .Values.jobPodAnnotations "context" $) | nindent 8 }} + {{- end }} + labels: {{- include "common.labels" . | nindent 8 }} name: {{ include "common.name" . }} spec: {{ include "common.podSecurityContext" . | indent 6 | trim }} |