Skip to content

Commit

Permalink
[chart] Ability to add priorityClassName
Browse files Browse the repository at this point in the history
CSI components and especially the node one, may be critical for
operators so in this commit we enable them to define priorities for this
kind of Pods.

Signed-off-by: dntosas <ntosas@gmail.com>
  • Loading branch information
dntosas committed Feb 9, 2021
1 parent e81e584 commit c9b1c39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/aws-ebs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
annotations: {{ toYaml .Values.podAnnotations | nindent 8 }}
{{- end }}
spec:
priorityClassName: "{{ .Values.priorityClassName }}"
nodeSelector:
kubernetes.io/os: linux
{{- with .Values.nodeSelector }}
Expand Down
1 change: 1 addition & 0 deletions charts/aws-ebs-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
annotations: {{ toYaml .Values.node.podAnnotations | nindent 8 }}
{{- end }}
spec:
priorityClassName: "{{ .Values.node.priorityClassName }}"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down
4 changes: 2 additions & 2 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ resources:
# cpu: 100m
# memory: 128Mi

priorityClassName: ""
nodeSelector: {}

tolerateAllTaints: true
tolerations: []

affinity: {}

# Extra volume tags to attach to each dynamically provisioned volume.
Expand All @@ -87,6 +86,7 @@ k8sTagClusterId: ""
region: ""

node:
priorityClassName: ""
nodeSelector: {}
podAnnotations: {}
tolerateAllTaints: true
Expand Down

0 comments on commit c9b1c39

Please sign in to comment.