From d6d9e9cdeb3741ac70d2bf4baf4e84a99aab48d8 Mon Sep 17 00:00:00 2001 From: George Kaz <1391828+georgekaz@users.noreply.github.com> Date: Tue, 13 Dec 2022 19:33:45 +0000 Subject: [PATCH] Delete Job scheduling Signed-off-by: George Kaz <1391828+georgekaz@users.noreply.github.com> --- .../templates/pre-delete-hooks.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/charts/zookeeper-operator/templates/pre-delete-hooks.yaml b/charts/zookeeper-operator/templates/pre-delete-hooks.yaml index 0156d4849..77fa3895a 100644 --- a/charts/zookeeper-operator/templates/pre-delete-hooks.yaml +++ b/charts/zookeeper-operator/templates/pre-delete-hooks.yaml @@ -115,4 +115,16 @@ spec: configMap: name: {{ template "zookeeper-operator.fullname" . }}-pre-delete defaultMode: 0555 + {{- if .Values.nodeSelector }} + nodeSelector: +{{ toYaml .Values.nodeSelector | indent 8 }} + {{- end }} + {{- if .Values.affinity }} + affinity: +{{ toYaml .Values.affinity | indent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: +{{ toYaml .Values.tolerations | indent 8 }} + {{- end }} {{- end }}