Skip to content

Commit

Permalink
Merge pull request #6 from uptick/bugfix/add-tolerations-to-pod-killer
Browse files Browse the repository at this point in the history
Add tolerations and affinity to pod-killer cronjob spec
  • Loading branch information
mdesouky authored Feb 28, 2024
2 parents 0a1efdd + f308ca9 commit 4607e15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/pod-killer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.0
version: 0.3.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 9 additions & 1 deletion charts/pod-killer/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ spec:
spec:
serviceAccount: {{ include "pod-killer.serviceAccountName" . }}
restartPolicy: Never
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 11 }}
{{- end}}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 11 }}
{{- end}}
containers:
- name: pod-killer
image: bitnami/kubectl
Expand Down Expand Up @@ -87,4 +95,4 @@ roleRef:
# "roleRef" specifies the binding to a Role / ClusterRole
kind: Role #this must be Role or ClusterRole
name: {{ include "pod-killer.fullname" . }}
apiGroup: rbac.authorization.k8s.io
apiGroup: rbac.authorization.k8s.io

0 comments on commit 4607e15

Please sign in to comment.