Skip to content

Commit

Permalink
(helm chart) Make priorityClassName optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoungs committed Jan 7, 2025
1 parent 5f9250c commit 6dea92a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deployment/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: dcgm-exporter
description: A Helm chart for DCGM exporter
version: "4.0.0"
version: "4.0.1"
kubeVersion: ">= 1.19.0-0"
appVersion: "4.0.0"
sources:
Expand Down
4 changes: 3 additions & 1 deletion deployment/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ spec:
{{- if .Values.runtimeClassName }}
runtimeClassName: {{ .Values.runtimeClassName }}
{{- end }}
priorityClassName: {{ .Values.priorityClassName | default "system-node-critical" }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{- if .Values.hostNetwork }}
hostNetwork: {{ .Values.hostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
Expand Down
3 changes: 3 additions & 0 deletions deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name:

# Defines the priority class used by the pod
priorityClassName: "system-node-critical"

rollingUpdate:
# Specifies maximum number of DaemonSet pods that can be unavailable during the update
maxUnavailable: 1
Expand Down

0 comments on commit 6dea92a

Please sign in to comment.