From e2d2b1ca4f57d1945fc6704e3fa8668dd9484152 Mon Sep 17 00:00:00 2001 From: Thijs Brobbel Date: Sat, 11 Apr 2026 14:44:27 +0200 Subject: [PATCH] feat: add support for setting the priorityClassName --- charts/podinfo/README.md | 1 + charts/podinfo/templates/deployment.yaml | 3 +++ charts/podinfo/values.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/charts/podinfo/README.md b/charts/podinfo/README.md index 875daf3..bde00af 100644 --- a/charts/podinfo/README.md +++ b/charts/podinfo/README.md @@ -130,6 +130,7 @@ The following tables lists the configurable parameters of the podinfo chart and | `nodeSelector` | `{}` | Node labels for pod assignment | | `tolerations` | `[]` | List of node taints to tolerate | | `affinity` | `None` | Node/pod affinities | +| `priorityClassName` | `""` | Pod priority class name | Specify each parameter using the `--set key=value[,key=value]` argument: diff --git a/charts/podinfo/templates/deployment.yaml b/charts/podinfo/templates/deployment.yaml index 177b057..b726745 100644 --- a/charts/podinfo/templates/deployment.yaml +++ b/charts/podinfo/templates/deployment.yaml @@ -214,6 +214,9 @@ spec: {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.priorityClassName }} + priorityClassName: {{ . }} {{- end }} volumes: - name: data diff --git a/charts/podinfo/values.yaml b/charts/podinfo/values.yaml index 8c89b4b..1fbfd19 100644 --- a/charts/podinfo/values.yaml +++ b/charts/podinfo/values.yaml @@ -272,6 +272,8 @@ tolerations: [] affinity: {} +priorityClassName: "" + podAnnotations: {} # https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/