From e983b99a0eac9e0924c9cf9218a13ffed79588c8 Mon Sep 17 00:00:00 2001 From: Csaky Date: Fri, 18 Oct 2024 14:26:48 -0700 Subject: [PATCH] disable backups for dev and test --- charts/coms/Chart.yaml | 4 ++-- charts/coms/values.yaml | 4 ---- charts/postgres/Chart.yaml | 2 +- charts/postgres/templates/pgbackrest-s3-secret.yaml | 4 ---- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/charts/coms/Chart.yaml b/charts/coms/Chart.yaml index 5f087b0a..e378ce30 100644 --- a/charts/coms/Chart.yaml +++ b/charts/coms/Chart.yaml @@ -3,7 +3,7 @@ name: common-object-management-service # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.4 +version: 0.1.7 kubeVersion: ">= 1.13.0" description: A microservice for managing access control to S3 Objects # A chart can be either an 'application' or a 'library' chart. @@ -28,7 +28,7 @@ sources: - https://github.com/bcgov/common-object-management-service dependencies: - name: postgrescluster - version: 0.1.4 + version: 0.1.7 repository: "file://../postgres" condition: postgres.enabled alias: postgres diff --git a/charts/coms/values.yaml b/charts/coms/values.yaml index 4cb6b496..b1893b73 100644 --- a/charts/coms/values.yaml +++ b/charts/coms/values.yaml @@ -247,7 +247,3 @@ postgres: limits: cpu: 50m memory: 128Mi - - # -------- backups --------- - pgBackRestConfig: - repos: {} diff --git a/charts/postgres/Chart.yaml b/charts/postgres/Chart.yaml index 15cb7f03..dd91a250 100644 --- a/charts/postgres/Chart.yaml +++ b/charts/postgres/Chart.yaml @@ -3,5 +3,5 @@ name: postgrescluster description: A Helm chart for Kubernetes type: application # The version below should match the version on the PostgresCluster CRD -version: 0.1.4 +version: 0.1.7 appVersion: 5.6.0 diff --git a/charts/postgres/templates/pgbackrest-s3-secret.yaml b/charts/postgres/templates/pgbackrest-s3-secret.yaml index 6af963c6..2d93e244 100644 --- a/charts/postgres/templates/pgbackrest-s3-secret.yaml +++ b/charts/postgres/templates/pgbackrest-s3-secret.yaml @@ -1,6 +1,4 @@ -{{- range $index, $repo := .Values.pgBackRestConfig.repos }} -{{- if $repo.s3 }} {{- $secretExists := (lookup "v1" "Secret" $.Release.Namespace "pgbackrest-s3" ) }} {{- if not $secretExists }} # this secret allows crunchyDb (pgbackrest) to connect to an S3 host for saving backups. @@ -18,5 +16,3 @@ stringData: repo2-s3-key= repo2-s3-key-secret= {{- end }} -{{- end }} -{{- end }}