From: andreas-geissler Date: Mon, 19 Jul 2021 15:53:22 +0000 (+0200) Subject: [POLICY] Added imagePullSecrets to common template files X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oom.git;a=commitdiff_plain;h=7d2a8cc37a187bbd875af7930f8b8a8b91054b23 [POLICY] Added imagePullSecrets to common template files 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 Change-Id: I482564ad13cbb6736520a887ced344bbb95d1fba (cherry picked from commit 7d85f3f93b7189f83a2e573431698ae75ebcddab) --- diff --git a/kubernetes/policy/components/policy-clamp-be/templates/job.yaml b/kubernetes/policy/components/policy-clamp-be/templates/job.yaml index c5c968a2e1..8fe711b825 100755 --- a/kubernetes/policy/components/policy-clamp-be/templates/job.yaml +++ b/kubernetes/policy/components/policy-clamp-be/templates/job.yaml @@ -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 diff --git a/kubernetes/policy/templates/job.yaml b/kubernetes/policy/templates/job.yaml index f2a55879ee..ad195722b2 100755 --- a/kubernetes/policy/templates/job.yaml +++ b/kubernetes/policy/templates/job.yaml @@ -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