apps: fix calcom secrets and postgres configs

This commit is contained in:
xeruf 2024-02-20 10:36:25 +01:00
parent 8b9c514503
commit 773f34880c
7 changed files with 26 additions and 27 deletions

View File

@ -99,13 +99,11 @@ data:
enabled: true
commonLabels:
stackspin.net/backupSet: "vikunja"
global:
postgresql:
auth:
database: vikunja
username: vikunja
password: "${postgresql_password}"
postgresPassword: "${postgresql_admin_password}"
auth:
database: vikunja
username: vikunja
password: "${postgresql_password}"
postgresPassword: "${postgresql_admin_password}"
primary:
persistence:
existingClaim: vikunja-postgres

View File

@ -86,13 +86,11 @@ data:
enabled: true
commonLabels:
stackspin.net/backupSet: "forgejo"
global:
postgresql:
auth:
database: gitea
username: gitea
password: gitea # "${postgresql_password}"
postgresPassword: "${postgresql_admin_password}"
auth:
database: gitea
username: gitea
password: gitea # "${postgresql_password}"
postgresPassword: "${postgresql_admin_password}"
primary:
podAnnotations:
backup.velero.io/backup-volumes: "data"

View File

@ -26,8 +26,6 @@ spec:
name: stackspin-cluster-variables
- kind: ConfigMap
name: stackspin-calcom-kustomization-variables
- kind: Secret
name: stackspin-calcom-variables
# OIDC
- kind: Secret
name: stackspin-calcom-oauth-variables

View File

@ -1,14 +1,11 @@
---
apiVersion: secretgenerator.mittwald.de/v1alpha1
kind: StringSecret
metadata:
name: stackspin-calcom-variables
namespace: flux-system
name: stackspin-calcom-keys
namespace: stackspout
spec:
# DATABASE_URL
# NEXT_PUBLIC_WEBAPP_URL
fields:
- fieldName: postgresql_password
- fieldName: postgresql_postgres_password
- fieldName: NEXTAUTH_SECRET
- fieldName: CALENDSO_ENCRYPTION_KEY

View File

@ -1,4 +1,3 @@
---
apiVersion: secretgenerator.mittwald.de/v1alpha1
kind: StringSecret
metadata:

View File

@ -0,0 +1,9 @@
apiVersion: secretgenerator.mittwald.de/v1alpha1
kind: StringSecret
metadata:
name: stackspin-calcom-postgres
namespace: stackspout
spec:
fields:
- fieldName: postgresql_password
- fieldName: postgresql_postgres_password

View File

@ -6,16 +6,15 @@ metadata:
data:
values.yaml: |
postgresql:
# https://github.com/Pyrrha/calcom-helm/blob/main/charts/calcom-stack/values.yaml
enabled: true
commonLabels:
stackspin.net/backupSet: "calcom"
#global:
# postgresql:
# https://github.com/bitnami/charts/tree/main/bitnami/postgresql/#postgresql-common-parameters
auth:
database: calcom
username: calcom
password: "${postgresql_password}"
postgresPassword: "${postgresql_postgres_password}"
existingSecret: "stackspin-calcom-postgres"
primary:
persistence:
existingClaim: calcom-postgres
@ -23,7 +22,8 @@ data:
backup.velero.io/backup-volumes: "data"
calcom:
secretRef: "stackspin-calcom-variables"
# https://github.com/Pyrrha/calcom-helm/blob/main/charts/calcom/values.yaml
secretRef: "stackspin-calcom-keys"
commonLabels:
stackspin.net/backupSet: "calcom"
podLabels: