diff --git a/charts/pod-killer/Chart.yaml b/charts/pod-killer/Chart.yaml index 5827ee6..cee7283 100644 --- a/charts/pod-killer/Chart.yaml +++ b/charts/pod-killer/Chart.yaml @@ -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 diff --git a/charts/pod-killer/templates/cronjob.yaml b/charts/pod-killer/templates/cronjob.yaml index 72b8b04..fdd019e 100644 --- a/charts/pod-killer/templates/cronjob.yaml +++ b/charts/pod-killer/templates/cronjob.yaml @@ -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 @@ -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 \ No newline at end of file