Bump vaultwarden

This commit is contained in:
Jonny Ervine
2025-01-29 21:25:25 +08:00
parent 1633d8e3dd
commit 1ce9887229
26 changed files with 1700 additions and 95 deletions
+53 -11
View File
@@ -36,6 +36,10 @@ spec:
serviceAccountName: {{ include "vaultwarden.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.initContainers }}
initContainers:
{{- toYaml .Values.initContainers | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
@@ -81,8 +85,6 @@ spec:
{{- end }}
- name: SHOW_PASSWORD_HINT
value: {{ .Values.vaultwarden.showPasswordHint | quote }}
- name: WEBSOCKET_ENABLED
value: {{ .Values.vaultwarden.enableWebsockets | quote }}
- name: WEB_VAULT_ENABLED
value: {{ .Values.vaultwarden.enableWebVault | quote }}
- name: SENDS_ALLOWED
@@ -97,6 +99,10 @@ spec:
- name: USER_ATTACHMENT_LIMIT
value: {{ .Values.vaultwarden.attachmentLimitUser | quote }}
{{- end }}
{{- if .Values.vaultwarden.sendLimitUser }}
- name: USER_SEND_LIMIT
value: {{ .Values.vaultwarden.sendLimitUser | quote }}
{{- end }}
{{- if .Values.vaultwarden.hibpApiKey }}
- name: HIBP_API_KEY
value: {{ .Values.vaultwarden.hibpApiKey | quote }}
@@ -113,10 +119,22 @@ spec:
- name: EVENTS_DAYS_RETAIN
value: {{ .Values.vaultwarden.orgEventsRetention | quote }}
{{- end }}
{{- if hasKey .Values.vaultwarden "emailChangeAllowed" }}
- name: EMAIL_CHANGE_ALLOWED
value: {{ .Values.vaultwarden.emailChangeAllowed | quote }}
{{- end }}
{{- if .Values.vaultwarden.extraEnv }}
{{- range $key, $val := .Values.vaultwarden.extraEnv }}
- name: {{ $key }}
{{- if kindIs "string" $val }}
value: {{ $val | quote }}
{{- else if or (hasKey $val "secretKeyRef") (hasKey $val "configMapKeyRef") }}
valueFrom:
{{- $val | toYaml | nindent 16 }}
{{- else }}
{{- fail "Items in extraEnv must be either text or contain a valueFrom key (configMapKeyRef or secretKeyRef)" }}
{{- end }}
{{- end }}
{{- end }}
{{- include "vaultwarden.dbTypeValid" . }}
@@ -138,7 +156,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ if .Values.database.existingSecret }}{{ .Values.database.existingSecret }}{{else}}{{ include "vaultwarden.fullname" . }}{{end}}
key: database-url
key: {{ if and .Values.database.existingSecret .Values.database.existingSecretKey }}{{ .Values.database.existingSecretKey }}{{else}}database-url{{end}}
{{- end }}
{{- if .Values.vaultwarden.domain }}
- name: DOMAIN
@@ -273,9 +291,9 @@ spec:
{{- if .Values.vaultwarden.icons.disableDownload }}
- name: DISABLE_ICON_DOWNLOAD
value: {{ .Values.vaultwarden.icons.disableDownload | quote }}
{{- if and (not .Values.vaultwarden.icons.cache) (eq .Values.vaultwarden.icons.disableDownload "true") }}
{{- if and (not .Values.vaultwarden.icons.cache) (.Values.vaultwarden.icons.disableDownload) }}
- name: ICON_CACHE_TTL
value: 0
value: "0"
{{- end }}
{{- end }}
{{- if .Values.vaultwarden.icons.cache }}
@@ -289,24 +307,45 @@ spec:
{{- if hasKey .Values.vaultwarden.icons "redirectCode" }}
- name: ICON_REDIRECT_CODE
value: {{ .Values.vaultwarden.icons.redirectCode | quote }}
{{- end }}
{{- end }}
{{- if eq .Values.vaultwarden.push.enabled true }}
- name: PUSH_INSTALLATION_ID
valueFrom:
secretKeyRef:
name: {{ .Values.vaultwarden.push.existingSecret | default (include "vaultwarden.fullname" .) }}
key: push-id
- name: PUSH_INSTALLATION_KEY
valueFrom:
secretKeyRef:
name: {{ .Values.vaultwarden.push.existingSecret | default (include "vaultwarden.fullname" .) }}
key: push-key
{{- if hasKey .Values.vaultwarden.push "relayUri" }}
- name: PUSH_RELAY_URI
value: {{ .Values.vaultwarden.push.relayUri | quote }}
{{- end }}
{{- if hasKey .Values.vaultwarden.push "identityUri" }}
- name: PUSH_IDENTITY_URI
value: {{ .Values.vaultwarden.push.identityUri | quote }}
{{- end }}
{{- end }}{{/* Push */}}
ports:
- name: http
containerPort: 8080
protocol: TCP
{{- if .Values.vaultwarden.enableWebsockets }}
- name: websocket
containerPort: 3012
protocol: TCP
{{- end }}
livenessProbe:
httpGet:
path: {{ include "vaultwarden.domainSubPath" . }}
port: http
{{- if .Values.probes.liveness }}
{{- toYaml .Values.probes.liveness | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: {{ include "vaultwarden.domainSubPath" . }}
port: http
{{- if .Values.probes.readiness }}
{{- toYaml .Values.probes.readiness | nindent 12 }}
{{- end }}
volumeMounts:
- name: {{ include "vaultwarden.fullname" . }}
mountPath: /data
@@ -328,6 +367,9 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.additionalVolumes }}
{{- toYaml .Values.additionalVolumes | nindent 6 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}