From 1e0fc0dfdcd08102d4cdbd7b7895fba0f8a0c74e Mon Sep 17 00:00:00 2001 From: Feruzjon Muyassarov Date: Fri, 17 Nov 2023 16:57:52 +0200 Subject: [PATCH] helm: fix missing tolerations option in sgx-epc plugin Signed-off-by: Feruzjon Muyassarov --- deployment/helm/sgx-epc/templates/daemonset.yaml | 4 ++++ deployment/helm/sgx-epc/values.yaml | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/deployment/helm/sgx-epc/templates/daemonset.yaml b/deployment/helm/sgx-epc/templates/daemonset.yaml index 08a54cd46..24190d82f 100644 --- a/deployment/helm/sgx-epc/templates/daemonset.yaml +++ b/deployment/helm/sgx-epc/templates/daemonset.yaml @@ -14,6 +14,10 @@ spec: labels: {{- include "sgx-epc.labels" . | nindent 8 }} spec: + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} restartPolicy: Always nodeSelector: kubernetes.io/os: "linux" diff --git a/deployment/helm/sgx-epc/values.yaml b/deployment/helm/sgx-epc/values.yaml index 853972e63..7555ded59 100644 --- a/deployment/helm/sgx-epc/values.yaml +++ b/deployment/helm/sgx-epc/values.yaml @@ -20,3 +20,12 @@ initContainerImage: # If not defined Chart.AppVersion will be used #tag: unstable pullPolicy: Always + +tolerations: [] +# +# Example: +# +# tolerations: +# - key: "node-role.kubernetes.io/control-plane" +# operator: "Exists" +# effect: "NoSchedule"