From 6dea92ac2b82633f19854ac964fe7d62a205640a Mon Sep 17 00:00:00 2001 From: jyoungs Date: Tue, 7 Jan 2025 11:57:00 -0600 Subject: [PATCH] (helm chart) Make priorityClassName optional --- deployment/Chart.yaml | 2 +- deployment/templates/daemonset.yaml | 4 +++- deployment/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/deployment/Chart.yaml b/deployment/Chart.yaml index f8face93..7a3efa0a 100644 --- a/deployment/Chart.yaml +++ b/deployment/Chart.yaml @@ -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: diff --git a/deployment/templates/daemonset.yaml b/deployment/templates/daemonset.yaml index 103f09cb..7df44a72 100644 --- a/deployment/templates/daemonset.yaml +++ b/deployment/templates/daemonset.yaml @@ -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 diff --git a/deployment/values.yaml b/deployment/values.yaml index ba1e1e66..561010b1 100644 --- a/deployment/values.yaml +++ b/deployment/values.yaml @@ -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