[DCAEGEN2] Added imagePullSecret to cleanup job 21/125121/3
authorAndreas Geissler <andreas-geissler@telekom.de>
Tue, 19 Oct 2021 10:14:01 +0000 (10:14 +0000)
committerAndreas Geissler <andreas-geissler@telekom.de>
Thu, 28 Oct 2021 07:17:46 +0000 (07:17 +0000)
Added the imagePullSecret in the job to enable private registries with
credential access

Issue-ID: OOM-2869
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Change-Id: I00f2166dee740a226f30e51b81b5e8e7f8396d04

kubernetes/dcaegen2/components/dcae-cloudify-manager/templates/job.yaml

index 2e8b4cd..f01edd2 100644 (file)
@@ -37,8 +37,10 @@ spec:
         app: {{ include "common.name" . }}
         release: {{ include "common.release" . }}
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       restartPolicy: Never
       containers:
       - name: dcae-cleanup
         image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.cleanupImage }}
-        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
\ No newline at end of file
+        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}