From a9e62794ffa7aa83c20b9fb88e285ca6df43f424 Mon Sep 17 00:00:00 2001 From: Mikel Garcia <122596907+mgarciaLKS@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:57:59 +0200 Subject: [PATCH] feat: add imagePullSecrets for jobs (#431) previously deployments have been enabled https://github.com/eclipse-tractusx/portal/pull/396 --- .../templates/cronjob-backend-portal-maintenance.yaml | 4 ++++ charts/portal/templates/cronjob-backend-processes.yaml | 4 ++++ .../portal/templates/job-backend-portal-migrations.yaml | 4 ++++ .../templates/job-backend-provisioning-migrations.yaml | 4 ++++ charts/portal/values.yaml | 8 ++++++++ 5 files changed, 24 insertions(+) diff --git a/charts/portal/templates/cronjob-backend-portal-maintenance.yaml b/charts/portal/templates/cronjob-backend-portal-maintenance.yaml index 466c35cbf..98807b182 100644 --- a/charts/portal/templates/cronjob-backend-portal-maintenance.yaml +++ b/charts/portal/templates/cronjob-backend-portal-maintenance.yaml @@ -33,6 +33,10 @@ spec: template: spec: restartPolicy: OnFailure + {{- with .Values.backend.portalmaintenance.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ include "portal.fullname" . }}-{{ .Values.backend.portalmaintenance.name }} securityContext: diff --git a/charts/portal/templates/cronjob-backend-processes.yaml b/charts/portal/templates/cronjob-backend-processes.yaml index a8c57c344..79289501a 100644 --- a/charts/portal/templates/cronjob-backend-processes.yaml +++ b/charts/portal/templates/cronjob-backend-processes.yaml @@ -34,6 +34,10 @@ spec: template: spec: restartPolicy: OnFailure + {{- with .Values.backend.processesworker.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ include "portal.fullname" . }}-{{ .Values.backend.processesworker.name }} securityContext: diff --git a/charts/portal/templates/job-backend-portal-migrations.yaml b/charts/portal/templates/job-backend-portal-migrations.yaml index b07d85c71..3e6a3d8e4 100644 --- a/charts/portal/templates/job-backend-portal-migrations.yaml +++ b/charts/portal/templates/job-backend-portal-migrations.yaml @@ -34,6 +34,10 @@ spec: name: {{ include "portal.fullname" . }}-{{ .Values.backend.portalmigrations.name }} spec: restartPolicy: Never + {{- with .Values.backend.portalmigrations.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ include "portal.fullname" . }}-{{ .Values.backend.portalmigrations.name }} securityContext: diff --git a/charts/portal/templates/job-backend-provisioning-migrations.yaml b/charts/portal/templates/job-backend-provisioning-migrations.yaml index a20600e02..48e67317b 100644 --- a/charts/portal/templates/job-backend-provisioning-migrations.yaml +++ b/charts/portal/templates/job-backend-provisioning-migrations.yaml @@ -34,6 +34,10 @@ spec: name: {{ include "portal.fullname" . }}-{{ .Values.backend.provisioningmigrations.name }} spec: restartPolicy: Never + {{- with .Values.backend.provisioningmigrations.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ include "portal.fullname" . }}-{{ .Values.backend.provisioningmigrations.name }} securityContext: diff --git a/charts/portal/values.yaml b/charts/portal/values.yaml index 9e65b5159..d0d17b8b3 100644 --- a/charts/portal/values.yaml +++ b/charts/portal/values.yaml @@ -604,6 +604,8 @@ backend: name: "docker.io/tractusx/portal-portal-migrations" portalmigrationstag: 8bb3bfd9dc9c45b170516f5a2387e7b443bb8730 pullPolicy: "IfNotPresent" + # -- Pull secrets for private docker registry + pullSecrets: [] # -- We recommend to review the default resource limits as this should a conscious choice. resources: requests: @@ -628,6 +630,8 @@ backend: name: "docker.io/tractusx/portal-maintenance-service" portalmaintenancetag: fb42752786463509d22114dfd2d80b9b9ef37676 pullPolicy: "IfNotPresent" + # -- Pull secrets for private docker registry + pullSecrets: [] # -- We recommend to review the default resource limits as this should a conscious choice. resources: requests: @@ -760,6 +764,8 @@ backend: name: "docker.io/tractusx/portal-provisioning-migrations" provisioningmigrationstag: bea374c345aa236eb6e2112734b8e3004c065647 pullPolicy: "IfNotPresent" + # -- Pull secrets for private docker registry + pullSecrets: [] # -- We recommend to review the default resource limits as this should a conscious choice. resources: requests: @@ -776,6 +782,8 @@ backend: name: "docker.io/tractusx/portal-processes-worker" processesworkertag: 8bb3bfd9dc9c45b170516f5a2387e7b443bb8730 pullPolicy: "IfNotPresent" + # -- Pull secrets for private docker registry + pullSecrets: [] # -- We recommend to review the default resource limits as this should a conscious choice. resources: requests: