Skip to content

Commit d160a50

Browse files
committed
add priorityClassName value and logic
Signed-off-by: David Kohl <[email protected]>
1 parent aeb7f40 commit d160a50

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

charts/core-dump-handler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ The following secrets are configurable and map to the corresponding environment
256256
### Values
257257
258258
General
259+
* priorityClassName: The priorityClass of the daemonset pods ( Default nil )
259260
* storage: The size of the storage for the cores (Default 1Gi)
260261
* storageClass: The storage class for volume (Default hostclass)
261262

charts/core-dump-handler/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ spec:
140140
{{- toYaml . | nindent 8 }}
141141
{{- end }}
142142
serviceAccountName: {{ include "core-dump-handler.serviceAccountName" . }}
143+
{{- if .Values.priorityClassName }}
144+
priorityClassName: {{ .Values.priorityClassName }}
145+
{{- end }}
143146
volumes:
144147
- name: host-volume
145148
persistentVolumeClaim:

charts/core-dump-handler/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ nodeSelector: {}
8383
# gpu-enabled: true
8484
affinity: {}
8585

86+
# priorityClassName for assigning priorityClass to the daemonset pods
87+
priorityClassName:
88+
8689
# Tolerations for the daemonset's pod assignment
8790
# ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
8891
tolerations: []

0 commit comments

Comments
 (0)