From 32712390f93e07b70d454af66b6f9766a69688e1 Mon Sep 17 00:00:00 2001 From: mgarciaLKS Date: Wed, 18 Sep 2024 09:56:53 +0200 Subject: [PATCH] add imagePullSecrets to migrations job --- charts/policy-hub/templates/job-policy-hub-migrations.yaml | 4 ++++ charts/policy-hub/values.yaml | 1 + 2 files changed, 5 insertions(+) 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 050e582..37deb08 100644 --- a/charts/policy-hub/values.yaml +++ b/charts/policy-hub/values.yaml @@ -50,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: