[COMMON] Added imagePullSecrets to common template files with some fix 93/122493/8
authorandreas-geissler <andreas-geissler@telekom.de>
Wed, 7 Jul 2021 13:40:41 +0000 (15:40 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 12 Jul 2021 15:54:37 +0000 (15:54 +0000)
Added the missing definition for imagePullSecrets in the
  statefulsets.yaml
  deployment.yaml
to support the registryGenerator

Issue-ID: OOM-2789
Signed-off-by: andreas-geissler <andreas-geissler@telekom.de>
Change-Id: I013ba52c9c49f95cd3d53fcaa9eb084adcbfe662

kubernetes/common/cassandra/templates/statefulset.yaml
kubernetes/common/etcd/templates/statefulset.yaml
kubernetes/common/mongo/templates/statefulset.yaml
kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml
kubernetes/common/music/templates/deployment.yaml
kubernetes/common/postgres/templates/_deployment.tpl

index 1a9d8b8..b95cb99 100644 (file)
@@ -28,6 +28,8 @@ spec:
     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
     spec:
       hostNetwork: {{ .Values.hostNetwork }}
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       containers:
       - name: {{ include "common.name" . }}
         image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}
index 48c8b6d..c8c0ffa 100644 (file)
@@ -48,6 +48,8 @@ spec:
       tolerations:
 {{ toYaml .Values.tolerations | indent 8 }}
 {{- end }}
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       containers:
       - name: {{ include "common.name" .  }}
         image: {{ include "repositoryGenerator.googleK8sRepository" . }}/{{ .Values.image }}
index 73186b3..1160205 100644 (file)
@@ -37,6 +37,8 @@ spec:
         release: {{ include "common.release" . }}
     spec:
 {{ include "common.podSecurityContext" . | indent 6 }}
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       containers:
         - name: {{ include "common.name" . }}
           image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}
index 1aabfb6..d80e70b 100644 (file)
@@ -41,6 +41,8 @@ spec:
         release: {{ include "common.release" . }}
       name: {{ include "common.name" . }}
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       containers:
       - name: {{ include "common.name" . }}
         image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
index 1e5d3c5..53d5a36 100644 (file)
@@ -23,6 +23,8 @@ spec:
   template:
     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" . }}-docker-registry-key"
       initContainers:
         - name: {{ include "common.name" . }}-cassandra-readiness
           image: {{ include "repositoryGenerator.image.readiness" . }}
index 7d04501..d93d401 100644 (file)
@@ -42,6 +42,8 @@ spec:
         release: {{ include "common.release" $dot }}
         name: "{{ index $dot.Values "container" "name" $pgMode }}"
     spec:
+      imagePullSecrets:
+      - name: "{{ include "common.namespace" $dot }}-docker-registry-key"
       initContainers:
       - command:
         - sh