From c3c03e6a3049f71adaae83be2b4fd2da81b14843 Mon Sep 17 00:00:00 2001 From: bhearn7 Date: Mon, 23 Aug 2021 14:23:51 -0400 Subject: [PATCH] b64dec for stringData --- chart/templates/engine_secret.yaml | 2 +- chart/templates/enterprise_feeds_secret.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/templates/engine_secret.yaml b/chart/templates/engine_secret.yaml index 9138cf9..230d20f 100644 --- a/chart/templates/engine_secret.yaml +++ b/chart/templates/engine_secret.yaml @@ -19,6 +19,6 @@ 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.data "ANCHORE_SAML_SECRET" }} + ANCHORE_SAML_SECRET: {{ b64dec (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 924c11b..d1c2e29 100644 --- a/chart/templates/enterprise_feeds_secret.yaml +++ b/chart/templates/enterprise_feeds_secret.yaml @@ -20,7 +20,7 @@ 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.data "ANCHORE_SAML_SECRET" }} + ANCHORE_SAML_SECRET: {{ b64dec (index $old_secret.data "ANCHORE_SAML_SECRET") }} {{- end }} {{- with .Values.anchoreEnterpriseFeeds.msrcApiKey }} ANCHORE_MSRC_KEY: {{ . | quote }} -- GitLab