Skip to content

Commit

Permalink
feat(): add nodeSelector and tolerations to cronjob chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Lin committed Dec 17, 2024
1 parent 7cec935 commit 8c6ff20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cronjob/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
description: Helm chart with simple cronjob template
name: cronjob
version: 1.0.1
version: 1.1.0
appVersion: 1.0.0
tillerVersion: ">=2.14.3"
8 changes: 8 additions & 0 deletions cronjob/templates/_k8s_cronjob.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,12 @@
name: {{ . }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end -}}

0 comments on commit 8c6ff20

Please sign in to comment.