feat: allow configuring pod priority class

This commit is contained in:
Thomas Lochet
2025-09-22 21:16:26 +02:00
committed by Lester Guerzon
parent 621d484717
commit dd0520f87b
4 changed files with 11 additions and 2 deletions

View File

@@ -13,5 +13,5 @@ maintainers:
- name: guerzon
email: guerzon@proton.me
url: https://github.com/guerzon
version: 0.34.3
version: 0.34.4
kubeVersion: ">=1.12.0-0"

View File

@@ -390,6 +390,7 @@ helm -n $NAMESPACE uninstall $RELEASE_NAME
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `affinity` | Affinity for pod assignment | `{}` |
| `tolerations` | Tolerations for pod assignment | `[]` |
| `priorityClassName` | Assign a priority class to pods | `""` |
| `serviceAccount.create` | Create a service account | `true` |
| `serviceAccount.name` | Name of the service account to create | `vaultwarden-svc` |
| `podSecurityContext` | Pod security options | `{}` |

View File

@@ -15,6 +15,9 @@ affinity:
tolerations:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 2 }}
@@ -235,4 +238,4 @@ serviceAccountName: {{ .Values.serviceAccount.name }}
imagePullSecrets:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -112,6 +112,11 @@ affinity: {}
##
tolerations: []
## @param priorityClassName Assign a priority class to pods
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
##
priorityClassName: ""
## @param serviceAccount.create Create a service account
## @param serviceAccount.name Name of the service account to create
##