From 888bd97c9762ff8f557dfab60ba4f51823ec083e Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Fri, 4 Oct 2024 18:48:52 +0200 Subject: [PATCH] some more fixes --- .../gitea/gitea-oauth.sealedsecret.yaml | 15 +++++++++++++++ infrastructure/gitea/gitea.values.yaml | 10 +++++----- infrastructure/gitea/kustomization.yaml | 1 + infrastructure/pg-ha/README.md | 3 +++ 4 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 infrastructure/gitea/gitea-oauth.sealedsecret.yaml create mode 100644 infrastructure/pg-ha/README.md diff --git a/infrastructure/gitea/gitea-oauth.sealedsecret.yaml b/infrastructure/gitea/gitea-oauth.sealedsecret.yaml new file mode 100644 index 0000000..5cb0873 --- /dev/null +++ b/infrastructure/gitea/gitea-oauth.sealedsecret.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: bitnami.com/v1alpha1 +kind: SealedSecret +metadata: + creationTimestamp: null + name: gitea-oauth + namespace: gitea +spec: + encryptedData: {} + template: + metadata: + creationTimestamp: null + name: gitea-oauth + namespace: gitea + type: Opaque diff --git a/infrastructure/gitea/gitea.values.yaml b/infrastructure/gitea/gitea.values.yaml index bb82c9a..b19b91a 100644 --- a/infrastructure/gitea/gitea.values.yaml +++ b/infrastructure/gitea/gitea.values.yaml @@ -118,9 +118,9 @@ gitea: additionalConfigSources: - secret: - secretName: gitea-oauth + secretName: gitea-oauth # since we want to reuse the posgres secret, we cannot directly use it here, but instead set the ENV variables - additionalConfugFromEnvs: + additionalConfigFromEnvs: - name: GITEA__DATABASE__DB_TYPE value: postgres - name: GITEA__DATABASE__HOST @@ -139,12 +139,12 @@ gitea: valueFrom: secretKeyRef: name: postgres-password - key: user + key: username postgresql: enabled: false -redis-cluster: - enabled: false postgresql-ha: enabled: false +redis-cluster: + enabled: false diff --git a/infrastructure/gitea/kustomization.yaml b/infrastructure/gitea/kustomization.yaml index c4d1c0f..1dea9f4 100644 --- a/infrastructure/gitea/kustomization.yaml +++ b/infrastructure/gitea/kustomization.yaml @@ -8,6 +8,7 @@ resources: # gitea values - gitea.pvc.yaml - gitea.ingress.yaml + - gitea-oauth.sealedsecret.yaml - gitea.servicemonitor.yaml # actions runner values - actions.deployment.yaml diff --git a/infrastructure/pg-ha/README.md b/infrastructure/pg-ha/README.md new file mode 100644 index 0000000..6486ea9 --- /dev/null +++ b/infrastructure/pg-ha/README.md @@ -0,0 +1,3 @@ +# Rebuilding the kluster + +When rebuilding the kluster from scratch, the CNPG containers \ No newline at end of file