Skip to content

Commit

Permalink
Adding volume.secret to jobs and cronjobs
Browse files Browse the repository at this point in the history
  • Loading branch information
dbpolito committed Nov 9, 2020
1 parent 31dadf1 commit 390c37b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/generic/templates/cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ spec:
{{- else }}
claimName: "{{ $fullName }}-{{ $volume.persistentVolumeClaim.claimName }}"
{{- end }}
{{- else if $volume.secret }}
secret:
{{- if $volume.secret.fullSecretName }}
secretName: {{ $volume.secret.fullSecretName }}
{{- else }}
secretName: "{{ $fullName }}-{{ $volume.secret.secretName }}"
{{- end }}
{{- else if $volume.hostPath }}
hostPath: {{ toYaml .hostPath | nindent 16 }}
{{- else }}
Expand Down
7 changes: 7 additions & 0 deletions charts/generic/templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ spec:
{{- else }}
claimName: "{{ $fullName }}-{{ $volume.persistentVolumeClaim.claimName }}"
{{- end }}
{{- else if $volume.secret }}
secret:
{{- if $volume.secret.fullSecretName }}
secretName: {{ $volume.secret.fullSecretName }}
{{- else }}
secretName: "{{ $fullName }}-{{ $volume.secret.secretName }}"
{{- end }}
{{- else if $volume.hostPath }}
hostPath: {{ toYaml .hostPath | nindent 12 }}
{{- else }}
Expand Down

0 comments on commit 390c37b

Please sign in to comment.