Skip to content

Commit

Permalink
feat: add imagePullSecrets for jobs (#431)
Browse files Browse the repository at this point in the history
previously deployments have been enabled #396
  • Loading branch information
mgarciaLKS authored Sep 19, 2024
1 parent ba39483 commit a9e6279
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions charts/portal/templates/cronjob-backend-processes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions charts/portal/templates/job-backend-portal-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions charts/portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit a9e6279

Please sign in to comment.