NAS-123186 / 23.10 / add db details in NOTES.txt (#1398)

* add db details in NOTES.txt (immich)

* add db details vaultwarden

* casing
This commit is contained in:
Stavros Kois
2023-07-27 21:06:22 +03:00
committed by GitHub
parent 29ef0063d1
commit 8ea56daebf
4 changed files with 46 additions and 0 deletions

View File

@@ -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 -}}

View File

@@ -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
<details>
<summary>Database Details</summary>
- Database: `immich`
- Username: `immich`
- Password: `{{ .Values.immichDbPass }}`
- Host: `{{ .Values.immichDbHost }}.{{ .Release.Namespace }}.svc.cluster.local`
- Port: `5432`
</details>
{{- $_ := unset .Values "immichDbPass" }}
{{- $_ := unset .Values "immichDbHost" }}

View File

@@ -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:

View File

@@ -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
<details>
<summary>Database Details</summary>
- Database: `vaultwarden`
- Username: `vaultwarden`
- Password: `{{ .Values.vaultwardenDbPass }}`
- Host: `{{ .Values.vaultwardenDbHost }}.{{ .Release.Namespace }}.svc.cluster.local`
- Port: `5432`
</details>
{{- $_ := unset .Values "vaultwardenDbPass" }}
{{- $_ := unset .Values "vaultwardenDbHost" }}