From 8ea56daebfb6784155d9392c6286e1b842b4b1c8 Mon Sep 17 00:00:00 2001
From: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Date: Thu, 27 Jul 2023 21:06:22 +0300
Subject: [PATCH] NAS-123186 / 23.10 / add db details in NOTES.txt (#1398)
* add db details in NOTES.txt (immich)
* add db details vaultwarden
* casing
---
.../immich/templates/_configuration.tpl | 5 +++++
library/ix-dev/community/immich/values.yaml | 18 ++++++++++++++++++
.../vaultwarden/templates/_configuration.tpl | 5 +++++
.../ix-dev/community/vaultwarden/values.yaml | 18 ++++++++++++++++++
4 files changed, 46 insertions(+)
diff --git a/library/ix-dev/community/immich/templates/_configuration.tpl b/library/ix-dev/community/immich/templates/_configuration.tpl
index 9021d336f9..fdacd222d6 100644
--- a/library/ix-dev/community/immich/templates/_configuration.tpl
+++ b/library/ix-dev/community/immich/templates/_configuration.tpl
@@ -10,6 +10,11 @@
{{- $dbPass = ((index .data "POSTGRES_PASSWORD") | b64dec) -}}
{{- end -}}
+ {{/* Temporary set dynamic db details on values,
+ so we can print them on the notes */}}
+ {{- $_ := set .Values "immichDbPass" $dbPass -}}
+ {{- $_ := set .Values "immichDbHost" $dbHost -}}
+
{{- $redisHost := (printf "%s-redis" $fullname) -}}
{{- $redisPass := randAlphaNum 32 -}}
diff --git a/library/ix-dev/community/immich/values.yaml b/library/ix-dev/community/immich/values.yaml
index c8093b7b50..850397d430 100644
--- a/library/ix-dev/community/immich/values.yaml
+++ b/library/ix-dev/community/immich/values.yaml
@@ -69,3 +69,21 @@ immichStorage:
pgBackup:
type: ixVolume
datasetName: pgBackup
+
+notes:
+ custom: |
+ ## Database
+ You can connect to the database using the pgAdmin App from the catalog
+
+
+ Database Details
+
+ - Database: `immich`
+ - Username: `immich`
+ - Password: `{{ .Values.immichDbPass }}`
+ - Host: `{{ .Values.immichDbHost }}.{{ .Release.Namespace }}.svc.cluster.local`
+ - Port: `5432`
+
+
+ {{- $_ := unset .Values "immichDbPass" }}
+ {{- $_ := unset .Values "immichDbHost" }}
diff --git a/library/ix-dev/community/vaultwarden/templates/_configuration.tpl b/library/ix-dev/community/vaultwarden/templates/_configuration.tpl
index bd5cd15fdb..c2458a41dd 100644
--- a/library/ix-dev/community/vaultwarden/templates/_configuration.tpl
+++ b/library/ix-dev/community/vaultwarden/templates/_configuration.tpl
@@ -15,6 +15,11 @@
{{- $dbPass = ((index .data "POSTGRES_PASSWORD") | b64dec) -}}
{{- end -}}
+ {{/* Temporary set dynamic db details on values,
+ so we can print them on the notes */}}
+ {{- $_ := set .Values "vaultwardenDbPass" $dbPass -}}
+ {{- $_ := set .Values "vaultwardenDbHost" $dbHost -}}
+
{{ $dbURL := (printf "postgres://%s:%s@%s:5432/%s?sslmode=disable" $dbUser $dbPass $dbHost $dbName) }}
secret:
postgres-creds:
diff --git a/library/ix-dev/community/vaultwarden/values.yaml b/library/ix-dev/community/vaultwarden/values.yaml
index 983b021228..f7bc4126d4 100644
--- a/library/ix-dev/community/vaultwarden/values.yaml
+++ b/library/ix-dev/community/vaultwarden/values.yaml
@@ -34,3 +34,21 @@ vaultwardenStorage:
pgBackup:
type: ixVolume
datasetName: pgBackup
+
+notes:
+ custom: |
+ ## Database
+ You can connect to the database using the pgAdmin App from the catalog
+
+
+ Database Details
+
+ - Database: `vaultwarden`
+ - Username: `vaultwarden`
+ - Password: `{{ .Values.vaultwardenDbPass }}`
+ - Host: `{{ .Values.vaultwardenDbHost }}.{{ .Release.Namespace }}.svc.cluster.local`
+ - Port: `5432`
+
+
+ {{- $_ := unset .Values "vaultwardenDbPass" }}
+ {{- $_ := unset .Values "vaultwardenDbHost" }}