diff --git a/deploy/charts/csi-driver/README.md b/deploy/charts/csi-driver/README.md index 27ed9d6d..0f2a4249 100644 --- a/deploy/charts/csi-driver/README.md +++ b/deploy/charts/csi-driver/README.md @@ -38,6 +38,7 @@ A Helm chart for cert-manager-csi-driver | nodeDriverRegistrarImage.repository | string | `"k8s.gcr.io/sig-storage/csi-node-driver-registrar"` | Target image repository. | | nodeDriverRegistrarImage.tag | string | `"v2.5.0"` | Target image version tag. | | nodeSelector | object | `{}` | | +| priorityClassName | string | `""` | Optional priority class to be used for the csi-driver pods. | | resources | object | `{}` | | | tolerations | list | `[]` | | diff --git a/deploy/charts/csi-driver/templates/daemonset.yaml b/deploy/charts/csi-driver/templates/daemonset.yaml index 9de2de71..51b1db1b 100644 --- a/deploy/charts/csi-driver/templates/daemonset.yaml +++ b/deploy/charts/csi-driver/templates/daemonset.yaml @@ -100,6 +100,10 @@ spec: tolerations: {{- toYaml .Values.tolerations | nindent 8 }} + {{- with .Values.priorityClassName }} + priorityClassName: {{ . | quote }} + {{- end }} + volumes: - name: plugin-dir hostPath: diff --git a/deploy/charts/csi-driver/values.yaml b/deploy/charts/csi-driver/values.yaml index 9df90332..2316ee55 100644 --- a/deploy/charts/csi-driver/values.yaml +++ b/deploy/charts/csi-driver/values.yaml @@ -9,7 +9,7 @@ image: # -- Optional secrets used for pulling the csi-driver container image imagePullSecrets: [] #- name: Secret with Registry credentials - + nodeDriverRegistrarImage: # -- Target image repository. repository: k8s.gcr.io/sig-storage/csi-node-driver-registrar @@ -63,3 +63,6 @@ tolerations: [] # -- Kubernetes pod tolerations for cert-manager-csi-driver # Allow scheduling of DaemonSet on all nodes # - operator: "Exists" + +# -- Optional priority class to be used for the csi-driver pods. +priorityClassName: ""