From fb0fa0459a76c8b9bef03c764e80105492fbf375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Eckl?= Date: Mon, 25 Nov 2024 15:50:13 +0100 Subject: [PATCH] Enable defining priorityClassName for the Env Injector --- stable/akv2k8s/templates/env-injector-deployment.yaml | 3 +++ stable/akv2k8s/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/stable/akv2k8s/templates/env-injector-deployment.yaml b/stable/akv2k8s/templates/env-injector-deployment.yaml index cf9a153..69efe42 100644 --- a/stable/akv2k8s/templates/env-injector-deployment.yaml +++ b/stable/akv2k8s/templates/env-injector-deployment.yaml @@ -41,6 +41,9 @@ spec: {{ toYaml .Values.env_injector.podAnnotations | nindent 8 }} {{- end }} spec: + {{- if .Values.env_injector.priorityClassName }} + priorityClassName: {{ .Values.env_injector.priorityClassName }} + {{- end }} automountServiceAccountToken: {{ .Values.env_injector.automountServiceAccountToken }} {{- if .Values.env_injector.podSecurityContext }} securityContext: diff --git a/stable/akv2k8s/values.yaml b/stable/akv2k8s/values.yaml index c5edc37..e3f6e4e 100644 --- a/stable/akv2k8s/values.yaml +++ b/stable/akv2k8s/values.yaml @@ -243,6 +243,9 @@ env_injector: # -- Security context set on a pod level podSecurityContext: + # -- Env-injector PriorityClass name + priorityClassName: "" + securityContext: # -- Must be `true` if using aks identity - can be set to false if userDefinedMSI is enabled, or Azure AD Pod Identity is used allowPrivilegeEscalation: true