Skip to content

Commit

Permalink
feat: remove not needed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
drikqlis committed Mar 15, 2024
1 parent fe68876 commit d089291
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 77 deletions.
2 changes: 1 addition & 1 deletion charts/vaultwarden/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sources:
- https://github.com/guerzon/vaultwarden
- https://github.com/dani-garcia/vaultwarden
appVersion: "1.30.5"
version: 0.22.19
version: 0.22.20
kubeVersion: ">=1.12.0-0"

dependencies:
Expand Down
17 changes: 1 addition & 16 deletions charts/vaultwarden/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,4 @@ Return the appropriate apiVersion for podDisruptionBudget.
{{- else -}}
{{- print "policy/v1beta1" -}}
{{- end -}}
{{- end -}}

{{/*
Determine whether to use deployment or statefulset
*/}}
{{- define "vaultwarden.resourceType" -}}
{{- if .Values.resourceType }}
{{- .Values.resourceType }}
{{- else }}
{{- if (and .Values.data (ne .Values.database.type "default")) }}
{{- "Deployment" }}
{{- else }}
{{- "StatefulSet" }}
{{- end }}
{{- end }}
{{- end }}
{{- end -}}
4 changes: 1 addition & 3 deletions charts/vaultwarden/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if eq (include "vaultwarden.resourceType" .) "Deployment" }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -48,5 +47,4 @@ spec:
- name: {{ $pvc.metadata.name }}
persistentVolumeClaim:
claimName: {{ $newName }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 0 additions & 2 deletions charts/vaultwarden/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{{- if eq (include "vaultwarden.resourceType" .) "Deployment" }}
{{- range $pvc := (fromYaml (include "vaultwarden.pvcSpec" .)).volumeClaimTemplates }}
---
apiVersion: v1
kind: PersistentVolumeClaim
{{- $newName := printf "%s-%s-0" $pvc.metadata.name $.Release.Name }}
{{- $newPvc := merge (dict "metadata" (dict "name" $newName)) $pvc }}
{{ $newPvc | toYaml }}
{{- end }}
{{- end }}
48 changes: 0 additions & 48 deletions charts/vaultwarden/templates/statefulset.yaml

This file was deleted.

9 changes: 2 additions & 7 deletions charts/vaultwarden/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ image:
##
fullnameOverride: ""

## @param resourceType Can be either Deployment or StatefulSet
## Overwrite automatic resource type detection by specifying the resource type
##
resourceType: ""

## @param commonAnnotations Annotations for the deployment or statefulset
##
commonAnnotations: {}
Expand Down Expand Up @@ -238,9 +233,9 @@ webVaultEnabled: "true"

database:
## @param database.type Database type, either mysql or postgresql
## Default is a sqlite database.
## Default is a postgresql database.
##
type: "default"
type: "postgresql"
## @param database.host Database hostname or IP address
##
host: ""
Expand Down

0 comments on commit d089291

Please sign in to comment.