Skip to content

Commit

Permalink
Merge pull request #36 from jtackaberry/pod-priority
Browse files Browse the repository at this point in the history
Add configurable priorityClassName to node and controller workloads
  • Loading branch information
travisghansen authored Sep 20, 2022
2 parents 5abbee0 + 6e8ad4e commit 8b0de2e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.13.5

Released 2022-09-20

- add `priorityClassName` value for both node DaemonSet and controller Deployment

# 0.13.4

Released 2022-08-07
Expand Down
2 changes: 1 addition & 1 deletion stable/democratic-csi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: csi storage for container orchestration systems
name: democratic-csi
version: 0.13.4
version: 0.13.5
3 changes: 3 additions & 0 deletions stable/democratic-csi/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ spec:
{{- if .Values.controller.rbac.enabled }}
serviceAccount: {{ include "democratic-csi.fullname" . }}-controller-sa
{{- end }}
{{- if .Values.controller.priorityClassName }}
priorityClassName: "{{ .Values.controller.priorityClassName }}"
{{- end }}
hostNetwork: {{ .Values.controller.hostNetwork }}
hostAliases: {{ .Values.controller.hostAliases }}
hostIPC: {{ .Values.controller.hostIPC }}
Expand Down
3 changes: 3 additions & 0 deletions stable/democratic-csi/templates/node-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
{{- if .Values.node.rbac.enabled }}
serviceAccount: {{ include "democratic-csi.fullname" . }}-node-sa
{{- end }}
{{- if .Values.node.priorityClassName }}
priorityClassName: "{{ .Values.node.priorityClassName }}"
{{- end }}
hostNetwork: {{ .Values.node.hostNetwork }}
hostAliases: {{ .Values.node.hostAliases }}
securityContext:
Expand Down
3 changes: 3 additions & 0 deletions stable/democratic-csi/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ spec:
{{- if .Values.node.rbac.enabled }}
serviceAccount: {{ include "democratic-csi.fullname" . }}-node-sa
{{- end }}
{{- if .Values.node.priorityClassName }}
priorityClassName: "{{ .Values.node.priorityClassName }}"
{{- end }}
# Required by iSCSI
hostNetwork: {{ .Values.node.hostNetwork }}
hostAliases: {{ .Values.node.hostAliases }}
Expand Down
2 changes: 2 additions & 0 deletions stable/democratic-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ controller:
hostIPC: false
podAnnotations: {}
podLabels: {}
priorityClassName: ""

# deployment = deploy controller parts in a distinct deployment
# node = deploy controller as sidecars with node daemonset
Expand Down Expand Up @@ -214,6 +215,7 @@ node:
kubeletHostPath: /var/lib/kubelet
podAnnotations: {}
podLabels: {}
priorityClassName: ""

livenessProbe:
enabled: true
Expand Down

0 comments on commit 8b0de2e

Please sign in to comment.