diff --git a/charts/policy-hub/templates/deployment-hub.yaml b/charts/policy-hub/templates/deployment-hub.yaml index cfac247..5db8026 100644 --- a/charts/policy-hub/templates/deployment-hub.yaml +++ b/charts/policy-hub/templates/deployment-hub.yaml @@ -36,6 +36,10 @@ spec: labels: {{- include "phub.selectorLabels" . | nindent 8 }} spec: + {{- with .Values.service.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ include "phub.fullname" . }} securityContext: diff --git a/charts/policy-hub/templates/job-policy-hub-migrations.yaml b/charts/policy-hub/templates/job-policy-hub-migrations.yaml index 12b2e01..3062f2c 100644 --- a/charts/policy-hub/templates/job-policy-hub-migrations.yaml +++ b/charts/policy-hub/templates/job-policy-hub-migrations.yaml @@ -34,6 +34,10 @@ spec: name: {{ .Values.migrations.name }}-migrations spec: restartPolicy: Never + {{- with .Values.migrations.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ include "phub.fullname" . }}-migrations securityContext: diff --git a/charts/policy-hub/values.yaml b/charts/policy-hub/values.yaml index c03b8a2..37deb08 100644 --- a/charts/policy-hub/values.yaml +++ b/charts/policy-hub/values.yaml @@ -21,6 +21,7 @@ service: image: name: "docker.io/tractusx/policy-hub-service" tag: "" + pullSecrets: [] imagePullPolicy: "IfNotPresent" # -- We recommend to review the default resource limits as this should a conscious choice. resources: @@ -49,6 +50,7 @@ migrations: image: name: "docker.io/tractusx/policy-hub-migrations" tag: "" + pullSecrets: [] imagePullPolicy: "IfNotPresent" # -- We recommend to review the default resource limits as this should a conscious choice. resources: