From 3a29023eada0f3c0ddf0031d5208b250f9f38406 Mon Sep 17 00:00:00 2001 From: Alexander Apalikov Date: Thu, 7 May 2020 17:17:02 +0300 Subject: [PATCH] Add tolerations for delete hook script Tolerations for delete Agones resources same as for the controller. --- install/helm/agones/templates/hooks/pre_delete_hook.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/helm/agones/templates/hooks/pre_delete_hook.yaml b/install/helm/agones/templates/hooks/pre_delete_hook.yaml index 819714d0dd..abafa827ba 100644 --- a/install/helm/agones/templates/hooks/pre_delete_hook.yaml +++ b/install/helm/agones/templates/hooks/pre_delete_hook.yaml @@ -47,6 +47,10 @@ spec: volumeMounts: - name: script mountPath: /scripts/ + {{- if .Values.agones.controller.tolerations }} + tolerations: +{{ toYaml .Values.agones.controller.tolerations | indent 8 }} + {{- end }} volumes: - name: script configMap: