From ae14fdef8b8e60ecce389c5a00e5f82e8b0bcbfa Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 23 Dec 2024 00:31:53 -0600 Subject: [PATCH] remove pg-16 --- clusters/cl01tl/platform/stalwart/Chart.yaml | 4 --- .../stalwart/templates/external-secret.yaml | 32 ------------------- clusters/cl01tl/platform/stalwart/values.yaml | 31 ++---------------- 3 files changed, 2 insertions(+), 65 deletions(-) diff --git a/clusters/cl01tl/platform/stalwart/Chart.yaml b/clusters/cl01tl/platform/stalwart/Chart.yaml index 7cc47412d..2c2f1a10a 100644 --- a/clusters/cl01tl/platform/stalwart/Chart.yaml +++ b/clusters/cl01tl/platform/stalwart/Chart.yaml @@ -32,10 +32,6 @@ dependencies: - name: elasticsearch version: 21.4.1 repository: https://charts.bitnami.com/bitnami - - name: postgres-cluster - alias: postgres-16-cluster - version: 3.21.0 - repository: http://alexlebens.github.io/helm-charts - name: postgres-cluster alias: postgres-17-cluster version: 3.21.0 diff --git a/clusters/cl01tl/platform/stalwart/templates/external-secret.yaml b/clusters/cl01tl/platform/stalwart/templates/external-secret.yaml index 1595f8c7b..658a05a75 100644 --- a/clusters/cl01tl/platform/stalwart/templates/external-secret.yaml +++ b/clusters/cl01tl/platform/stalwart/templates/external-secret.yaml @@ -81,38 +81,6 @@ spec: metadataPolicy: None property: secret_key ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - name: stalwart-postgresql-16-cluster-backup-secret - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: stalwart-postgresql-16-cluster-backup-secret - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: database - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - secretStoreRef: - kind: ClusterSecretStore - name: vault - data: - - secretKey: ACCESS_KEY_ID - remoteRef: - conversionStrategy: Default - decodingStrategy: None - key: /digital-ocean/home-infra/postgres-backups - metadataPolicy: None - property: access - - secretKey: ACCESS_SECRET_KEY - remoteRef: - conversionStrategy: Default - decodingStrategy: None - key: /digital-ocean/home-infra/postgres-backups - metadataPolicy: None - property: secret - --- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret diff --git a/clusters/cl01tl/platform/stalwart/values.yaml b/clusters/cl01tl/platform/stalwart/values.yaml index ae186a86b..fee2c6d14 100644 --- a/clusters/cl01tl/platform/stalwart/values.yaml +++ b/clusters/cl01tl/platform/stalwart/values.yaml @@ -90,23 +90,8 @@ elasticsearch: ingest: enabled: false replicaCount: 0 -postgres-16-cluster: - mode: standalone - cluster: - walStorage: - storageClass: local-path - storage: - storageClass: local-path - monitoring: - enabled: true - backup: - enabled: true - endpointURL: https://nyc3.digitaloceanspaces.com - destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/stalwart/stalwart-postgresql-16-cluster - endpointCredentials: stalwart-postgresql-16-cluster-backup-secret - backupIndex: 1 postgres-17-cluster: - mode: replica + mode: standalone cluster: image: repository: ghcr.io/cloudnative-pg/postgresql @@ -117,20 +102,8 @@ postgres-17-cluster: storageClass: local-path monitoring: enabled: true - replica: - importType: microservice - importDatabases: - - app - externalCluster: - connectionParameters: - host: stalwart-postgresql-16-cluster-rw - user: app - dbname: app - password: - name: stalwart-postgresql-16-cluster-app - key: password backup: - enabled: false + enabled: true endpointURL: https://nyc3.digitaloceanspaces.com destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/stalwart/stalwart-postgresql-17-cluster endpointCredentials: stalwart-postgresql-17-cluster-backup-secret