[COMMON] Make imagePullSecrets configurable
[oom.git] / kubernetes / common / network-name-gen / templates / deployment.yaml
index 1eed35c..6bba995 100644 (file)
@@ -43,6 +43,13 @@ spec:
               fieldPath: metadata.namespace
         image: {{ include "repositoryGenerator.image.readiness" . }}
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+        resources:
+          limits:
+            cpu: "100m"
+            memory: "500Mi"
+          requests:
+            cpu: "3m"
+            memory: "20Mi"
       containers:
       - name: {{ include "common.name" . }}
         command:
@@ -110,5 +117,4 @@ spec:
       - name: certs
         secret:
             secretName: {{ include "common.release" . }}-aai-keystore
-      imagePullSecrets:
-      - name: "{{ include "common.namespace" . }}-docker-registry-key"
+      {{- include "common.imagePullSecrets" . | nindent 6 }}