[POLICY] Added imagePullSecrets to common template files 17/122717/1
authorandreas-geissler <andreas-geissler@telekom.de>
Mon, 19 Jul 2021 15:53:22 +0000 (17:53 +0200)
committerandreas-geissler <andreas-geissler@telekom.de>
Mon, 19 Jul 2021 15:55:21 +0000 (17:55 +0200)
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

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