From 439dd446aec3c28a4fa8dba5045db00a32dd8637 Mon Sep 17 00:00:00 2001 From: Csaky Date: Thu, 28 Nov 2024 11:20:32 -0800 Subject: [PATCH] update postgres helm chart --- charts/coms/Chart.yaml | 4 ++-- charts/postgres/Chart.yaml | 2 +- .../postgres/templates/postgres-bootstrap-sql-configmap.yaml | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/charts/coms/Chart.yaml b/charts/coms/Chart.yaml index 8f5b631b..e7bae5ea 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: 2.0.0 +version: 2.0.1 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: 2.0.0 + version: 2.0.1 repository: "file://../postgres" condition: postgres.enabled alias: postgres diff --git a/charts/postgres/Chart.yaml b/charts/postgres/Chart.yaml index 1b3decf4..3892b55c 100644 --- a/charts/postgres/Chart.yaml +++ b/charts/postgres/Chart.yaml @@ -3,6 +3,6 @@ name: postgrescluster description: A Helm chart for Kubernetes type: application # postgrescluster Helm Chart version -version: 2.0.0 +version: 2.0.1 # PostgresCluster CRD version appVersion: 5.5.1 diff --git a/charts/postgres/templates/postgres-bootstrap-sql-configmap.yaml b/charts/postgres/templates/postgres-bootstrap-sql-configmap.yaml index e2fbcc5a..44f99ba6 100644 --- a/charts/postgres/templates/postgres-bootstrap-sql-configmap.yaml +++ b/charts/postgres/templates/postgres-bootstrap-sql-configmap.yaml @@ -6,6 +6,8 @@ apiVersion: v1 kind: ConfigMap metadata: name: {{ .Values.databaseInitSQL.name }} + annotations: + "helm.sh/resource-policy": keep data: bootstrap.sql: {{ toYaml .Values.databaseInitSQL.sql | indent 2 }}