From 2de0f12e649cfbcdd0342190f37c74be99e83163 Mon Sep 17 00:00:00 2001 From: bhearn Date: Tue, 27 Apr 2021 21:00:07 +0000 Subject: [PATCH] Db secrets fix --- CHANGELOG.md | 4 ++++ chart/Chart.yaml | 2 +- chart/templates/bigbang/db/anchore-db-secret.yaml | 2 +- chart/templates/bigbang/db/feeds-db-secret.yaml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6098495..a830733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), --- +## [1.12.7-bb.3] +### Fixed +- Updated delete policies to db secrets to handle helm errors + ## [1.12.7-bb.2] ### Changed - Added secrets and jobs for automated external Postgres database creation and user/password synchronization diff --git a/chart/Chart.yaml b/chart/Chart.yaml index d0bea8b..b111f2f 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: anchore-engine -version: 1.12.7-bb.2 +version: 1.12.7-bb.3 appVersion: 0.9.3 description: Anchore container analysis and policy evaluation engine service keywords: diff --git a/chart/templates/bigbang/db/anchore-db-secret.yaml b/chart/templates/bigbang/db/anchore-db-secret.yaml index c82686e..946b565 100644 --- a/chart/templates/bigbang/db/anchore-db-secret.yaml +++ b/chart/templates/bigbang/db/anchore-db-secret.yaml @@ -14,7 +14,7 @@ metadata: annotations: "helm.sh/hook-weight": "-5" "helm.sh/hook": pre-install,pre-upgrade - "helm.sh/hook-delete-policy": hook-succeeded + "helm.sh/hook-delete-policy": before-hook-creation type: Opaque data: PGUSER: {{ b64enc .Values.postgresql.postgresUser }} diff --git a/chart/templates/bigbang/db/feeds-db-secret.yaml b/chart/templates/bigbang/db/feeds-db-secret.yaml index 37b979c..68fe0eb 100644 --- a/chart/templates/bigbang/db/feeds-db-secret.yaml +++ b/chart/templates/bigbang/db/feeds-db-secret.yaml @@ -14,7 +14,7 @@ metadata: annotations: "helm.sh/hook-weight": "-5" "helm.sh/hook": pre-install,pre-upgrade - "helm.sh/hook-delete-policy": hook-succeeded + "helm.sh/hook-delete-policy": before-hook-creation type: Opaque data: PGUSER: {{ b64enc (index .Values "anchore-feeds-db" "postgresUser") }} -- GitLab