[POLICY] Added imagePullSecrets to common template files 70/122570/2
authorandreas-geissler <andreas-geissler@telekom.de>
Mon, 19 Jul 2021 15:53:22 +0000 (17:53 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 22 Jul 2021 09:41:17 +0000 (09:41 +0000)
Added the missing definition for imagePullSecrets in the
  job.yaml (policy, clamp-be)
to support the registryGenerator.

Issue-ID: OOM-2793

Signed-off-by: andreas-geissler <andreas-geissler@telekom.de>
Change-Id: I482564ad13cbb6736520a887ced344bbb95d1fba
(cherry picked from commit 7d85f3f93b7189f83a2e573431698ae75ebcddab)

kubernetes/policy/components/policy-clamp-be/templates/job.yaml
kubernetes/policy/templates/job.yaml

index c5c968a..8fe711b 100755 (executable)
@@ -30,6 +30,8 @@ spec:
         app: {{ include "common.name" . }}-policy-clamp-job
         release: {{ include "common.release" . }}
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       initContainers:
 #This container checks that all galera instances are up before initializing it.
       - name: {{ include "common.name" . }}-readiness
index f2a5587..ad19572 100755 (executable)
@@ -30,6 +30,8 @@ spec:
         app: {{ include "common.name" . }}-job
         release: {{ include "common.release" . }}
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       initContainers:
 #This container checks that all galera instances are up before initializing it.
       - name: {{ include "common.name" . }}-readiness