aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/templates
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2024-03-20 09:51:32 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2024-03-20 15:51:27 +0100
commitbd0d31acc349a67c01de0595d152b8448b5311d1 (patch)
tree73ec72f08fa7f5b789b08573e2adc8a6b011214e /kubernetes/policy/templates
parent5fa1a05b3142c1f70757d5ce5b4519e574f6f5b2 (diff)
[COMMON] Make imagePullSecrets configurable
Currently in ONAP the imagePullSecrets is hardcoded to 'onap-docker-registry-key' which is created by the repository-wrapper component. With this change the secrets can be configured via setting global.imagePullSecrets and optionally per image if it is configured as map (image.pullSecrets) Issue-ID: OOM-3284 Change-Id: I8644f9b46043b6014219c42928e057b149df43a4 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/policy/templates')
-rwxr-xr-xkubernetes/policy/templates/job.yaml12
1 files changed, 4 insertions, 8 deletions
diff --git a/kubernetes/policy/templates/job.yaml b/kubernetes/policy/templates/job.yaml
index 7129392e39..697c25aa36 100755
--- a/kubernetes/policy/templates/job.yaml
+++ b/kubernetes/policy/templates/job.yaml
@@ -33,8 +33,7 @@ spec:
release: {{ include "common.release" . }}
name: {{ include "common.name" . }}-galera-init
spec:
- imagePullSecrets:
- - name: "{{ include "common.namespace" . }}-docker-registry-key"
+ {{- include "common.imagePullSecrets" . | nindent 6 }}
initContainers:
{{- if .Values.global.mariadbGalera.localCluster }}
{{- if .Values.global.mariadbGalera.useOperator }}
@@ -121,8 +120,7 @@ spec:
release: {{ include "common.release" . }}
name: {{ include "common.name" . }}-pg-init
spec:
- imagePullSecrets:
- - name: "{{ include "common.namespace" . }}-docker-registry-key"
+ {{- include "common.imagePullSecrets" . | nindent 6 }}
initContainers: {{ if .Values.global.postgres.localCluster }}{{ include "common.readinessCheck.waitFor" . | nindent 6 }}{{ end }}
containers:
- name: {{ include "common.name" . }}-pg-config
@@ -198,8 +196,7 @@ spec:
release: {{ include "common.release" . }}
name: {{ include "common.name" . }}-galera-config
spec:
- imagePullSecrets:
- - name: "{{ include "common.namespace" . }}-docker-registry-key"
+ {{- include "common.imagePullSecrets" . | nindent 6 }}
initContainers:
- name: {{ include "common.name" . }}-init-readiness
image: {{ include "repositoryGenerator.image.readiness" . }}
@@ -297,8 +294,7 @@ spec:
release: {{ include "common.release" . }}
name: {{ include "common.name" . }}-pg-config
spec:
- imagePullSecrets:
- - name: "{{ include "common.namespace" . }}-docker-registry-key"
+ {{- include "common.imagePullSecrets" . | nindent 6 }}
initContainers:
- name: {{ include "common.name" . }}-init-readiness
image: {{ include "repositoryGenerator.image.readiness" . }}