From cde486f0c3b697d899c8a3a2d023fb6d2376026e Mon Sep 17 00:00:00 2001 From: Allen Conlon Date: Mon, 3 Nov 2025 19:01:09 -0500 Subject: [PATCH] feat: add affinity, toleration, and nodeSelector for operator deployment Signed-off-by: Allen Conlon --- .../ceph-csi-operator/templates/deployment.yaml | 12 ++++++++++++ deploy/charts/ceph-csi-operator/values.yaml | 3 +++ 2 files changed, 15 insertions(+) diff --git a/deploy/charts/ceph-csi-operator/templates/deployment.yaml b/deploy/charts/ceph-csi-operator/templates/deployment.yaml index 7c287747a..e79499434 100644 --- a/deploy/charts/ceph-csi-operator/templates/deployment.yaml +++ b/deploy/charts/ceph-csi-operator/templates/deployment.yaml @@ -58,4 +58,16 @@ spec: securityContext: {{- toYaml .Values.controllerManager.podSecurityContext | nindent 8 }} serviceAccountName: {{ include "ceph-csi-operator.fullname" . }}-controller-manager + {{- with .Values.controllerManager.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.controllerManager.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.controllerManager.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} terminationGracePeriodSeconds: 10 diff --git a/deploy/charts/ceph-csi-operator/values.yaml b/deploy/charts/ceph-csi-operator/values.yaml index 6a1608bdd..02bde3689 100644 --- a/deploy/charts/ceph-csi-operator/values.yaml +++ b/deploy/charts/ceph-csi-operator/values.yaml @@ -32,6 +32,9 @@ controllerManager: replicas: 1 serviceAccount: annotations: {} + nodeSelector: {} + tolerations: [] + affinity: {} imagePullSecrets: [] kubernetesClusterDomain: cluster.local nfsCtrlpluginSa: