Skip to content

Commit

Permalink
Including imagePullSecrets in Jobs (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: hfuss <[email protected]>
  • Loading branch information
onelapahead authored Feb 9, 2022
1 parent c534110 commit 21bcdda
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/firefly/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: firefly
description: A Helm chart for deploying FireFly and FireFly HTTPS Dataexchange onto Kubernetes.
type: application
appVersion: "0.12.0"
version: "0.2.0"
version: "0.2.1"

maintainers:
- name: hfuss
Expand Down
4 changes: 4 additions & 0 deletions charts/firefly/templates/core/job-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
activeDeadlineSeconds: 12000
template:
spec:
{{- with .Values.core.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: migration
image: "{{ .Values.core.image.repository }}:{{ .Values.core.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/firefly/templates/core/job-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
activeDeadlineSeconds: 12000
template:
spec:
{{- with .Values.core.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: registration
image: "{{ .Values.core.image.repository }}:{{ .Values.core.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
name: {{ include "firefly.fullname" . }}-erc20-erc721-deploy-scripts
- name: tmp
emptyDir: {}
{{- with .Values.erc20erc721.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: deploy-contracts
image: "{{ .Values.erc20erc721.image.repository }}:{{ .Values.erc20erc721.image.tag }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
name: {{ include "firefly.fullname" . }}-contracts
- name: tmp
emptyDir: {}
{{- with .Values.core.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: register-contracts
image: "{{ .Values.core.image.repository }}:{{ .Values.core.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
Expand Down

0 comments on commit 21bcdda

Please sign in to comment.