Skip to content

Commit dd0520f

Browse files
Thomas Lochetguerzon
authored andcommitted
feat: allow configuring pod priority class
1 parent 621d484 commit dd0520f

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

charts/vaultwarden/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ maintainers:
1313
- name: guerzon
1414
email: guerzon@proton.me
1515
url: https://github.com/guerzon
16-
version: 0.34.3
16+
version: 0.34.4
1717
kubeVersion: ">=1.12.0-0"

charts/vaultwarden/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ helm -n $NAMESPACE uninstall $RELEASE_NAME
390390
| `nodeSelector` | Node labels for pod assignment | `{}` |
391391
| `affinity` | Affinity for pod assignment | `{}` |
392392
| `tolerations` | Tolerations for pod assignment | `[]` |
393+
| `priorityClassName` | Assign a priority class to pods | `""` |
393394
| `serviceAccount.create` | Create a service account | `true` |
394395
| `serviceAccount.name` | Name of the service account to create | `vaultwarden-svc` |
395396
| `podSecurityContext` | Pod security options | `{}` |

charts/vaultwarden/templates/_podSpec.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ affinity:
1515
tolerations:
1616
{{- toYaml . | nindent 2 }}
1717
{{- end }}
18+
{{- with .Values.priorityClassName }}
19+
priorityClassName: {{ . | quote }}
20+
{{- end }}
1821
{{- with .Values.podSecurityContext }}
1922
securityContext:
2023
{{- toYaml . | nindent 2 }}
@@ -235,4 +238,4 @@ serviceAccountName: {{ .Values.serviceAccount.name }}
235238
imagePullSecrets:
236239
{{- toYaml . | nindent 2 }}
237240
{{- end }}
238-
{{- end }}
241+
{{- end }}

charts/vaultwarden/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ affinity: {}
112112
##
113113
tolerations: []
114114

115+
## @param priorityClassName Assign a priority class to pods
116+
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
117+
##
118+
priorityClassName: ""
119+
115120
## @param serviceAccount.create Create a service account
116121
## @param serviceAccount.name Name of the service account to create
117122
##

0 commit comments

Comments
 (0)