Skip to content

Commit

Permalink
Parameterize the nodeSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuderman committed Feb 21, 2024
1 parent 8cc5d94 commit 64320c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions galaxy/templates/cronjob-maintenance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ spec:
securityContext:
{{- toYaml $cronjob.securityContext | nindent 12 }}
{{- end}}
{{- with $.nodeSelector }}
{{- if $cronjob.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- toYaml $cronjob.nodeSelector | nindent 12 }}
{{- else if $.Values.nodeSelector }}
nodeSelector:
{{- toYaml $.Values.nodeSelector | nindent 12 }}
{{- end }}
containers:
- name: galaxy-cron-{{ $key }}
Expand Down

0 comments on commit 64320c8

Please sign in to comment.