From 0020d7e06e08d5fb0741f0bb355b78a0fa67cff5 Mon Sep 17 00:00:00 2001 From: Lawrence Gil Date: Fri, 3 Jan 2025 14:36:14 +0100 Subject: [PATCH] fix: support adding tolerations to the device plugin operator (#70) --- charts/device-plugin-operator/templates/operator.yaml | 1 + charts/device-plugin-operator/values.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/charts/device-plugin-operator/templates/operator.yaml b/charts/device-plugin-operator/templates/operator.yaml index 5be8da4..beba32e 100644 --- a/charts/device-plugin-operator/templates/operator.yaml +++ b/charts/device-plugin-operator/templates/operator.yaml @@ -367,6 +367,7 @@ spec: secret: defaultMode: 420 secretName: webhook-server-cert + tolerations: {{ .Values.tolerations | toYaml | nindent 8 }} --- apiVersion: cert-manager.io/v1 kind: Certificate diff --git a/charts/device-plugin-operator/values.yaml b/charts/device-plugin-operator/values.yaml index bef85a2..a715a82 100644 --- a/charts/device-plugin-operator/values.yaml +++ b/charts/device-plugin-operator/values.yaml @@ -26,3 +26,5 @@ resources: requests: cpu: 100m memory: 100Mi + +tolerations: []