[PLATFORM] Added imagePullSecrets to common template files 74/122574/5
authorandreas-geissler <andreas-geissler@telekom.de>
Mon, 19 Jul 2021 15:46:31 +0000 (17:46 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 3 Aug 2021 16:05:09 +0000 (16:05 +0000)
Added the missing definition for imagePullSecrets in the
  deployment.yaml of oom-cert-service, cmpv2-cert-provider
to support the registryGenerator

Issue-ID: OOM-2792
Signed-off-by: andreas-geissler <andreas-geissler@telekom.de>
Change-Id: I6cec6b223515de649606f1daba1dd920a8348213
(cherry picked from commit 5389da8a1a915f5423df99d97b3c6ebee16916ec)

kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml
kubernetes/platform/components/oom-cert-service/templates/deployment.yaml

index 3a99373..d4b0d0c 100644 (file)
@@ -33,6 +33,8 @@ spec:
       labels:
         control-plane: controller-manager
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       initContainers:
       {{ include "common.readinessCheck.waitFor" . | indent 6 | trim }}
       containers:
index c4d7440..63609a8 100644 (file)
@@ -23,6 +23,8 @@ spec:
   template:
     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       volumes:
 {{- if .Values.global.addTestingComponents }}
         - name: cmp-servers-template-volume