From 44bc2b5b9e7c978c8b2ef561567035d660dd2f31 Mon Sep 17 00:00:00 2001 From: Geoffrey Beausire Date: Fri, 3 Nov 2023 14:57:24 +0100 Subject: [PATCH] Add support for tolerations in helm chart --- chart/templates/deployment.yaml | 6 +++++- chart/values.yaml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index fa4e1a0..852a5ca 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -67,4 +67,8 @@ spec: securityContext: runAsNonRoot: true serviceAccountName: {{ include "chart.fullname" . }}-controller-manager - terminationGracePeriodSeconds: 10 \ No newline at end of file + terminationGracePeriodSeconds: 10 + {{- with .Values.controllerManager.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index a38c69e..d941c6c 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -44,6 +44,7 @@ controllerManager: replicas: 1 serviceAccount: annotations: {} + tolerations: {} kubernetesClusterDomain: cluster.local metricsService: ports: