Storage Tweaking and bugfixing (#506)

* first work for allowing ramdisk usage

* add bump tooling.
Fixes: #157

* bump minor versions due to adding ramdisk emptydir to persistence

* allow disabling persistent storage

* actually push major as it is breaking in theory

* cleanup hpm example code

* Allow custom storageClass and fix bug using the wrong storageClass

* try fixing gabs

* cleanup

* update tests

* revert some permission job changes

* reverse some of the 3.0 common incompatible bitwarden changes
This commit is contained in:
Kjeld Schouten-Lebbing
2021-05-24 21:17:29 +02:00
committed by GitHub
parent 7e49c3c179
commit a837947884
95 changed files with 1524 additions and 1143 deletions
+30 -33
View File
@@ -1,39 +1,36 @@
apiVersion: v2
kubeVersion: ">=1.16.0-0"
name: vaultwarden
version: 1.0.1
# upstream_version:
appVersion: "auto"
description: Unofficial Bitwarden compatible server written in Rust
type: application
appVersion: auto
dependencies:
- name: common
repository: https://truecharts.org/
version: 4.1.6
- condition: postgresql.enabled
name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 10.4.6
deprecated: false
description: Unofficial Bitwarden compatible server written in Rust
home: https://github.com/truecharts/apps/tree/master/stable/vaultwarden
icon: https://raw.githubusercontent.com/bitwarden/brand/master/icons/256x256.png
keywords:
- bitwarden
- bitwardenrs
- bitwarden_rs
- vaultwarden
- password
- rust
sources:
- https://github.com/truecharts/apps/tree/master/incubator/bitwarden
- https://github.com/k8s-at-home/charts/tree/master/charts/stable/bitwardenrs
- https://github.com/dani-garcia/vaultwarden
dependencies:
- name: common
repository: https://truecharts.org/
version: 4.1.6
# condition:
- name: postgresql
version: 10.4.6
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
- bitwarden
- bitwardenrs
- bitwarden_rs
- vaultwarden
- password
- rust
kubeVersion: '>=1.16.0-0'
maintainers:
- name: TrueCharts
email: info@truecharts.org
url: truecharts.org
- name: Ornias1993
email: kjeld@schouten-lebbing.nl
url: truecharts.org
# annotations:
- email: info@truecharts.org
name: TrueCharts
url: truecharts.org
- email: kjeld@schouten-lebbing.nl
name: Ornias1993
url: truecharts.org
name: vaultwarden
sources:
- https://github.com/truecharts/apps/tree/master/incubator/bitwarden
- https://github.com/k8s-at-home/charts/tree/master/charts/stable/bitwardenrs
- https://github.com/dani-garcia/vaultwarden
type: application
version: 1.1.0
+46 -25
View File
@@ -610,16 +610,13 @@ questions:
schema:
type: boolean
default: true
hidden: true
hidden: false
- variable: storageClass
label: "Type of Storage"
description: " Warning: Anything other than Internal will break rollback!"
description: " Warning: Anything other than SCALE-ZFS will break rollback!"
schema:
type: string
default: ""
enum:
- value: ""
description: "Internal"
default: "SCALE-ZFS"
- variable: mountPath
label: "mountPath"
description: "Path inside the container the storage is mounted"
@@ -628,17 +625,27 @@ questions:
default: "/data"
hidden: true
- variable: emptyDir
label: "Mount a ramdisk instead of actual storage"
label: "Use Empty Dir Mountpoint"
schema:
type: dict
hidden: true
hidden: false
attrs:
- variable: enabled
label: "Enable emptyDir"
schema:
type: boolean
default: false
hidden: true
hidden: false
- variable: medium
label: "EmptyDir Medium"
schema:
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
- variable: accessMode
label: "Access Mode (Advanced)"
description: "Allow or disallow multiple PVC's writhing to the same PVC"
@@ -678,13 +685,10 @@ questions:
hidden: true
- variable: storageClass
label: "Type of Storage"
description: " Warning: Anything other than Internal will break rollback!"
description: " Warning: Anything other than SCALE-ZFS will break rollback!"
schema:
type: string
default: ""
enum:
- value: ""
description: "Internal"
default: "SCALE-ZFS"
- variable: mountPath
label: "mountPath"
description: "Path inside the container the storage is mounted"
@@ -693,17 +697,27 @@ questions:
default: ""
hidden: true
- variable: emptyDir
label: "Mount a ramdisk instead of actual storage"
label: "Use Empty Dir Mountpoint"
schema:
type: dict
hidden: true
hidden: false
attrs:
- variable: enabled
label: "Enable emptyDir"
schema:
type: boolean
default: false
hidden: true
hidden: false
- variable: medium
label: "EmptyDir Medium"
schema:
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
- variable: accessMode
label: "Access Mode (Advanced)"
description: "Allow or disallow multiple PVC's writhing to the same PVC"
@@ -733,16 +747,13 @@ questions:
schema:
type: boolean
default: true
hidden: true
hidden: false
- variable: storageClass
label: "Type of Storage"
description: " Warning: Anything other than Internal will break rollback!"
schema:
type: string
default: ""
enum:
- value: ""
description: "Internal"
default: "SCALE-ZFS"
- variable: mountPath
label: "mountPath"
description: "Path inside the container the storage is mounted"
@@ -751,17 +762,27 @@ questions:
default: ""
hidden: true
- variable: emptyDir
label: "Mount a ramdisk instead of actual storage"
label: "Use Empty Dir Mountpoint"
schema:
type: dict
hidden: true
hidden: false
attrs:
- variable: enabled
label: "Enable emptyDir"
schema:
type: boolean
default: false
hidden: true
hidden: false
- variable: medium
label: "EmptyDir Medium"
schema:
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
- variable: accessMode
label: "Access Mode (Advanced)"
description: "Allow or disallow multiple PVC's writhing to the same PVC"