From aba75cfe92b975498f6fc6d180c0ab2eb43a9abc Mon Sep 17 00:00:00 2001 From: emiran-orange Date: Thu, 6 Jul 2023 13:56:41 +0200 Subject: [PATCH] Ability define priorityClassName for CSIDriver components --- .../helm/nvmesh-csi-driver/templates/deployment.yaml | 6 ++++++ deploy/kubernetes/helm/nvmesh-csi-driver/values.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/deploy/kubernetes/helm/nvmesh-csi-driver/templates/deployment.yaml b/deploy/kubernetes/helm/nvmesh-csi-driver/templates/deployment.yaml index e4de6eb..af4ff84 100644 --- a/deploy/kubernetes/helm/nvmesh-csi-driver/templates/deployment.yaml +++ b/deploy/kubernetes/helm/nvmesh-csi-driver/templates/deployment.yaml @@ -25,6 +25,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- with .Values.controller.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} {{- with .Values.controller.nodeSelector }} nodeSelector: {{ toYaml . | nindent 8 }} @@ -137,6 +140,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- with .Values.nodeDriver.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} serviceAccount: {{ template "nvmesh-csi-driver.serviceAccountName" . }} {{- with .Values.nodeDriver.nodeSelector }} nodeSelector: diff --git a/deploy/kubernetes/helm/nvmesh-csi-driver/values.yaml b/deploy/kubernetes/helm/nvmesh-csi-driver/values.yaml index 946a797..fa8f8f7 100644 --- a/deploy/kubernetes/helm/nvmesh-csi-driver/values.yaml +++ b/deploy/kubernetes/helm/nvmesh-csi-driver/values.yaml @@ -42,6 +42,7 @@ controller: hostNetwork: false nodeSelector: {} affinity: {} + priorityClassName: nodeDriver: tolerations: - key: node-role.kubernetes.io/master @@ -49,6 +50,7 @@ nodeDriver: operator: Exists nodeSelector: {} affinity: {} + priorityClassName: image: repository: excelero/nvmesh-csi-driver