From d7bdcbd026e942e6a3fc8f8358a9e1b077c17f02 Mon Sep 17 00:00:00 2001 From: Jun <108045855+2456868764@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:26:08 +0800 Subject: [PATCH] fix priorityClassName missed (#1096) --- helm/core/templates/controller-deployment.yaml | 3 +++ helm/core/templates/daemonset.yaml | 3 +++ helm/core/templates/deployment.yaml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/helm/core/templates/controller-deployment.yaml b/helm/core/templates/controller-deployment.yaml index 762892c2a..c7cc08284 100644 --- a/helm/core/templates/controller-deployment.yaml +++ b/helm/core/templates/controller-deployment.yaml @@ -26,6 +26,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "controller.serviceAccountName" . }} + {{- if .Values.global.priorityClassName }} + priorityClassName: "{{ .Values.global.priorityClassName }}" + {{- end }} securityContext: {{- toYaml .Values.controller.podSecurityContext | nindent 8 }} containers: diff --git a/helm/core/templates/daemonset.yaml b/helm/core/templates/daemonset.yaml index 1e144ea14..1e5951266 100644 --- a/helm/core/templates/daemonset.yaml +++ b/helm/core/templates/daemonset.yaml @@ -44,6 +44,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "gateway.serviceAccountName" . }} + {{- if .Values.global.priorityClassName }} + priorityClassName: "{{ .Values.global.priorityClassName }}" + {{- end }} securityContext: {{- if .Values.gateway.securityContext }} {{- toYaml .Values.gateway.securityContext | nindent 8 }} diff --git a/helm/core/templates/deployment.yaml b/helm/core/templates/deployment.yaml index 6ce2bbb87..8a085927d 100644 --- a/helm/core/templates/deployment.yaml +++ b/helm/core/templates/deployment.yaml @@ -59,6 +59,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "gateway.serviceAccountName" . }} + {{- if .Values.global.priorityClassName }} + priorityClassName: "{{ .Values.global.priorityClassName }}" + {{- end }} securityContext: {{- if .Values.gateway.securityContext }} {{- toYaml .Values.gateway.securityContext | nindent 8 }}