diff --git a/charts/oramap-chart/templates/deployment.yaml b/charts/oramap-chart/templates/deployment.yaml index dbdae9e..28475ac 100644 --- a/charts/oramap-chart/templates/deployment.yaml +++ b/charts/oramap-chart/templates/deployment.yaml @@ -24,6 +24,10 @@ spec: release: {{ .Release.Name }} component: backend spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: backend image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag }}" @@ -80,6 +84,10 @@ spec: release: {{ .Release.Name }} component: frontend spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: frontend image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}" diff --git a/charts/oramap-chart/templates/mongodb-statefulset.yaml b/charts/oramap-chart/templates/mongodb-statefulset.yaml index 832316d..05be527 100644 --- a/charts/oramap-chart/templates/mongodb-statefulset.yaml +++ b/charts/oramap-chart/templates/mongodb-statefulset.yaml @@ -19,6 +19,10 @@ spec: {{- include "oramap.selectorLabels" . | nindent 8 }} app.kubernetes.io/component: database spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: mongodb image: "{{ .Values.mongodb.image.repository }}:{{ .Values.mongodb.image.tag }}" diff --git a/charts/oramap-chart/values.yaml b/charts/oramap-chart/values.yaml index 7e5a009..894d62e 100644 --- a/charts/oramap-chart/values.yaml +++ b/charts/oramap-chart/values.yaml @@ -1,5 +1,7 @@ replicaCount: 1 +imagePullSecrets: [] + # Backend API configuration backend: image: