Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds priorityClassName option to helm chart #124

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deploy/charts/csi-driver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `[]` | |

4 changes: 4 additions & 0 deletions deploy/charts/csi-driver/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ spec:
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}

{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}

volumes:
- name: plugin-dir
hostPath:
Expand Down
5 changes: 4 additions & 1 deletion deploy/charts/csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: ""