feat: add pod priorityClassName

This commit is contained in:
weian
2023-02-15 18:35:45 +08:00
parent f5e2b9dd67
commit 2b878f03e0
3 changed files with 5 additions and 1 deletions

View File

@ -14,4 +14,4 @@ type: library
# This is the chart version. This version number should be incremented each time you make changes # 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. # to the chart and its templates, including the app version.
version: 1.3.1 version: 1.4.0

View File

@ -1057,6 +1057,7 @@ It also uses the following configuration from the `$pod`:
| `$pod.affinity ` | Expressions for affinity | | `$pod.affinity ` | Expressions for affinity |
| `$pod.tolerations ` | Toleration labels for pod assignment | | `$pod.tolerations ` | Toleration labels for pod assignment |
| `$pod.podLabels` | Pod extra labels | | `$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. Underneath the hood, it invokes [`common.container`](#commoncontainer) template with `$pod` to populate the `PodSpec`'s container list.

View File

@ -36,6 +36,9 @@ spec:
tolerations: tolerations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- with $pod.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
{{- end }} {{- end }}
{{- define "common.pod.template" -}} {{- define "common.pod.template" -}}