From 606adf8115aaa03fa79f8914d1e487b5aa882673 Mon Sep 17 00:00:00 2001 From: bhearn7 Date: Mon, 23 Aug 2021 14:08:40 -0400 Subject: [PATCH] undo testing --- chart/templates/engine_secret.yaml | 4 ++-- chart/templates/enterprise_feeds_secret.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chart/templates/engine_secret.yaml b/chart/templates/engine_secret.yaml index 6442831..9138cf9 100644 --- a/chart/templates/engine_secret.yaml +++ b/chart/templates/engine_secret.yaml @@ -16,9 +16,9 @@ stringData: ANCHORE_DB_PASSWORD: {{ index .Values "postgresql" "postgresPassword" | quote }} {{- $anchorefullname := include "anchore-engine.fullname" . -}} {{- $old_secret := lookup "v1" "Secret" .Release.Namespace $anchorefullname }} - {{- if or (not $old_secret) (not $old_secret.stringData) }} + {{- if or (not $old_secret) (not $old_secret.data) }} ANCHORE_SAML_SECRET: {{ .Values.anchoreGlobal.saml.secret | default (randAlphaNum 12) | quote }} {{ else }} - ANCHORE_SAML_SECRET: {{ index $old_secret.stringData "ANCHORE_SAML_SECRET" }} + ANCHORE_SAML_SECRET: {{ index $old_secret.data "ANCHORE_SAML_SECRET" }} {{- end }} {{- end }} \ No newline at end of file diff --git a/chart/templates/enterprise_feeds_secret.yaml b/chart/templates/enterprise_feeds_secret.yaml index 2c66d0c..924c11b 100644 --- a/chart/templates/enterprise_feeds_secret.yaml +++ b/chart/templates/enterprise_feeds_secret.yaml @@ -17,10 +17,10 @@ stringData: ANCHORE_FEEDS_DB_PASSWORD: {{ index .Values "anchore-feeds-db" "postgresPassword" | quote }} {{- $anchorefullname := include "anchore-engine.fullname" . -}} {{- $old_secret := lookup "v1" "Secret" .Release.Namespace $anchorefullname }} - {{- if or (not $old_secret) (not $old_secret.stringData) }} + {{- if or (not $old_secret) (not $old_secret.data) }} ANCHORE_SAML_SECRET: {{ .Values.anchoreGlobal.saml.secret | default (randAlphaNum 12) | quote }} {{ else }} - ANCHORE_SAML_SECRET: {{ index $old_secret.stringData "ANCHORE_SAML_SECRET" }} + ANCHORE_SAML_SECRET: {{ index $old_secret.data "ANCHORE_SAML_SECRET" }} {{- end }} {{- with .Values.anchoreEnterpriseFeeds.msrcApiKey }} ANCHORE_MSRC_KEY: {{ . | quote }} -- GitLab