Skip to content

Commit

Permalink
add imagePullSecrets to migrations job
Browse files Browse the repository at this point in the history
  • Loading branch information
mgarciaLKS committed Sep 18, 2024
1 parent 272fb9b commit 3271239
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/policy-hub/templates/job-policy-hub-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions charts/policy-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3271239

Please sign in to comment.