Skip to content

Commit

Permalink
Propagate tolerations from values to jobs
Browse files Browse the repository at this point in the history
This fixes a bug which would prevent jobs from running on a cluster
where all nodes are tainted, leading to failures to install Fleet
charts.
  • Loading branch information
weyfonk committed Jan 30, 2025
1 parent cffcf49 commit b19fbb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/fleet/templates/job_cleanup_clusterregistrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ spec:
- clusterregistration
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
{{- if $.Values.tolerations }}
{{ toYaml $.Values.tolerations | indent 8 }}
{{- end }}
backoffLimit: 1
{{- end }}
3 changes: 3 additions & 0 deletions charts/fleet/templates/job_cleanup_gitrepojobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ spec:
- gitjob
nodeSelector: {{ include "linux-node-selector" . | nindent 12 }}
tolerations: {{ include "linux-node-tolerations" . | nindent 12 }}
{{- if $.Values.tolerations }}
{{ toYaml $.Values.tolerations | indent 12 }}
{{- end }}
backoffLimit: 1
{{- end }}

0 comments on commit b19fbb5

Please sign in to comment.