Fix databases on fireflyiii and vaultwarden
This commit is contained in:
@@ -27,4 +27,4 @@ name: fireflyiii
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/firefly-iii/firefly-iii/
|
- https://github.com/firefly-iii/firefly-iii/
|
||||||
type: application
|
type: application
|
||||||
version: 6.0.7
|
version: 6.0.8
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-dbcreds
|
{{- $dbcredsname := ( printf "%v-%v" .Release.Name "dbcreds" ) }}
|
||||||
{{- $previous := lookup "v1" "Secret" .Release.Namespace ( ( printf "%v-%v" .Release.Name "dbcreds" ) | quote ) }}
|
name: $dbcredsname
|
||||||
|
{{- $previous := lookup "v1" "Secret" .Release.Namespace $dbcredsname }}
|
||||||
{{- $dbPass := "" }}
|
{{- $dbPass := "" }}
|
||||||
data:
|
data:
|
||||||
{{- if $previous }}
|
{{- if $previous }}
|
||||||
{{- $dbPass = ( index $previous.data "postgresql-password" ) | b64dec }}
|
|
||||||
postgresql-password: {{ ( index $previous.data "postgresql-password" ) }}
|
postgresql-password: {{ ( index $previous.data "postgresql-password" ) }}
|
||||||
postgresql-postgres-password: {{ ( index $previous.data "postgresql-postgres-password" ) }}
|
postgresql-postgres-password: {{ ( index $previous.data "postgresql-postgres-password" ) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|||||||
@@ -31,4 +31,4 @@ name: vaultwarden
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/dani-garcia/vaultwarden
|
- https://github.com/dani-garcia/vaultwarden
|
||||||
type: application
|
type: application
|
||||||
version: 5.0.7
|
version: 5.0.8
|
||||||
|
|||||||
@@ -41,12 +41,12 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "common.labels" . | nindent 4 }}
|
{{- include "common.labels" . | nindent 4 }}
|
||||||
name: {{ .Release.Name }}-dbcreds
|
{{- $dbcredsname := ( printf "%v-%v" .Release.Name "dbcreds" ) }}
|
||||||
{{- $previous := lookup "v1" "Secret" .Release.Namespace ( ( printf "%v-%v" .Release.Name "dbcreds" ) | quote ) }}
|
name: $dbcredsname
|
||||||
|
{{- $previous := lookup "v1" "Secret" .Release.Namespace $dbcredsname }}
|
||||||
{{- $dbPass := "" }}
|
{{- $dbPass := "" }}
|
||||||
data:
|
data:
|
||||||
{{- if $previous }}
|
{{- if $previous }}
|
||||||
{{- $dbPass = ( index $previous.data "postgresql-password" ) | b64dec }}
|
|
||||||
postgresql-password: {{ ( index $previous.data "postgresql-password" ) }}
|
postgresql-password: {{ ( index $previous.data "postgresql-password" ) }}
|
||||||
postgresql-postgres-password: {{ ( index $previous.data "postgresql-postgres-password" ) }}
|
postgresql-postgres-password: {{ ( index $previous.data "postgresql-postgres-password" ) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|||||||
Reference in New Issue
Block a user