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,8 +99,6 @@ data:
enabled: true enabled: true
commonLabels: commonLabels:
stackspin.net/backupSet: "vikunja" stackspin.net/backupSet: "vikunja"
global:
postgresql:
auth: auth:
database: vikunja database: vikunja
username: vikunja username: vikunja

View File

@ -86,8 +86,6 @@ data:
enabled: true enabled: true
commonLabels: commonLabels:
stackspin.net/backupSet: "forgejo" stackspin.net/backupSet: "forgejo"
global:
postgresql:
auth: auth:
database: gitea database: gitea
username: gitea username: gitea

View File

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

View File

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

View File

@ -1,4 +1,3 @@
---
apiVersion: secretgenerator.mittwald.de/v1alpha1 apiVersion: secretgenerator.mittwald.de/v1alpha1
kind: StringSecret kind: StringSecret
metadata: 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: data:
values.yaml: | values.yaml: |
postgresql: postgresql:
# https://github.com/Pyrrha/calcom-helm/blob/main/charts/calcom-stack/values.yaml
enabled: true enabled: true
commonLabels: commonLabels:
stackspin.net/backupSet: "calcom" stackspin.net/backupSet: "calcom"
#global: # https://github.com/bitnami/charts/tree/main/bitnami/postgresql/#postgresql-common-parameters
# postgresql:
auth: auth:
database: calcom database: calcom
username: calcom username: calcom
password: "${postgresql_password}" existingSecret: "stackspin-calcom-postgres"
postgresPassword: "${postgresql_postgres_password}"
primary: primary:
persistence: persistence:
existingClaim: calcom-postgres existingClaim: calcom-postgres
@ -23,7 +22,8 @@ data:
backup.velero.io/backup-volumes: "data" backup.velero.io/backup-volumes: "data"
calcom: calcom:
secretRef: "stackspin-calcom-variables" # https://github.com/Pyrrha/calcom-helm/blob/main/charts/calcom/values.yaml
secretRef: "stackspin-calcom-keys"
commonLabels: commonLabels:
stackspin.net/backupSet: "calcom" stackspin.net/backupSet: "calcom"
podLabels: podLabels: