From 4176cc46694421a5563461dc611f16ec46d8d0e9 Mon Sep 17 00:00:00 2001 From: Mathias Maes Date: Fri, 8 Sep 2023 08:22:45 +0200 Subject: [PATCH] Allow configuring of the priorityClass Signed-off-by: Mathias Maes --- deploy/charts/trust-manager/README.md | 1 + deploy/charts/trust-manager/templates/deployment.yaml | 3 +++ deploy/charts/trust-manager/values.yaml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/deploy/charts/trust-manager/README.md b/deploy/charts/trust-manager/README.md index 7706ba57..c58d6017 100644 --- a/deploy/charts/trust-manager/README.md +++ b/deploy/charts/trust-manager/README.md @@ -56,6 +56,7 @@ Kubernetes: `>= 1.25.0-0` | image.tag | string | `nil` | Target image version tag. Defaults to the chart's appVersion. | | imagePullSecrets | list | `[]` | For Private docker registries, authentication is needed. Registry secrets are applied to the service account | | nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Configure the nodeSelector; defaults to any Linux node (trust-manager doesn't support Windows nodes) | +| priorityClassName | string | `""` | Configure the priority class of the pod; see https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass | | replicaCount | int | `1` | Number of replicas of trust-manager to run. | | resources | object | `{}` | | | tolerations | list | `[]` | List of Kubernetes Tolerations; see https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#toleration-v1-core | diff --git a/deploy/charts/trust-manager/templates/deployment.yaml b/deploy/charts/trust-manager/templates/deployment.yaml index 1b6eed00..5d9a7786 100644 --- a/deploy/charts/trust-manager/templates/deployment.yaml +++ b/deploy/charts/trust-manager/templates/deployment.yaml @@ -87,6 +87,9 @@ spec: seccompProfile: type: RuntimeDefault {{- end }} + {{- with .Values.priorityClassName }} + priorityClassName: "{{ . }}" + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/deploy/charts/trust-manager/values.yaml b/deploy/charts/trust-manager/values.yaml index a47bf158..0751cf3e 100644 --- a/deploy/charts/trust-manager/values.yaml +++ b/deploy/charts/trust-manager/values.yaml @@ -111,6 +111,9 @@ resources: {} # cpu: 100m # memory: 128Mi +# -- Configure the priority class of the pod; see https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass +priorityClassName: "" + # -- Configure the nodeSelector; defaults to any Linux node (trust-manager doesn't support Windows nodes) nodeSelector: kubernetes.io/os: linux