From 2b878f03e0211371cb0d835ef4a02dc66ac34f49 Mon Sep 17 00:00:00 2001 From: weian Date: Wed, 15 Feb 2023 18:35:45 +0800 Subject: [PATCH] feat: add pod priorityClassName --- Chart.yaml | 2 +- README.md | 1 + templates/_pod.tpl | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 76928e2..e19a272 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -14,4 +14,4 @@ type: library # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 1.3.1 +version: 1.4.0 diff --git a/README.md b/README.md index 9059191..f8204d0 100644 --- a/README.md +++ b/README.md @@ -1057,6 +1057,7 @@ It also uses the following configuration from the `$pod`: | `$pod.affinity ` | Expressions for affinity | | `$pod.tolerations ` | Toleration labels for pod assignment | | `$pod.podLabels` | Pod extra labels | +| `$pod.priorityClassName` | Pod priorityClassName | Underneath the hood, it invokes [`common.container`](#commoncontainer) template with `$pod` to populate the `PodSpec`'s container list. diff --git a/templates/_pod.tpl b/templates/_pod.tpl index 95fb1ef..a47c884 100644 --- a/templates/_pod.tpl +++ b/templates/_pod.tpl @@ -36,6 +36,9 @@ spec: tolerations: {{- toYaml . | nindent 4 }} {{- end }} + {{- with $pod.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} {{- end }} {{- define "common.pod.template" -}}