[COMMON] Make imagePullSecrets configurable
[oom.git] / kubernetes / dmaap / components / dmaap-dr-node / templates / statefulset.yaml
index f4167af..2659e96 100644 (file)
@@ -67,16 +67,14 @@ spec:
             - mountPath: /opt/app/datartr/etc/logback.xml
               name: {{ include "common.fullname" . }}-log-conf
               subPath: logback.xml
-          resources:
-{{ include "common.resources" . }}
+          resources: {{ include "common.resources" . | nindent 12 }}
         {{- if .Values.nodeSelector }}
         nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
         {{- end -}}
         {{- if .Values.affinity }}
         affinity: {{ toYaml .Values.affinity | nindent 10 }}
         {{- end }}
-      imagePullSecrets:
-      - name: "{{ include "common.namespace" . }}-docker-registry-key"
+      {{- include "common.imagePullSecrets" . | nindent 6 }}
       serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes:
         - name: localtime