[A1POLICYMANAGEMENT] Fix missing imagePullSecrets 70/125870/1
authorAndreas Geissler <andreas-geissler@telekom.de>
Wed, 24 Nov 2021 14:01:31 +0000 (14:01 +0000)
committerAndreas Geissler <andreas-geissler@telekom.de>
Wed, 24 Nov 2021 14:10:10 +0000 (14:10 +0000)
Added imagePullSecrets and changed image definition for envsubstImage

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

kubernetes/a1policymanagement/templates/statefulset.yaml

index 1d25f31..0114b30 100644 (file)
@@ -28,6 +28,8 @@ spec:
     metadata:
       labels: {{- include "common.labels" . | nindent 8 }}
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
       - name: {{ include "common.name" . }}-bootstrap-config
         image: {{ include "repositoryGenerator.image.envsubst" . }}
@@ -58,7 +60,7 @@ spec:
           name: config
       containers:
       - name: {{ include "common.name" . }}-update-config
-        image: "{{ .Values.global.envsubstImage }}"
+        image: {{ include "repositoryGenerator.image.envsubst" . }}
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         securityContext:
           runAsGroup: {{ .Values.groupID }}