From d2980bab11dc373f45bca028bcde1d6079e7b331 Mon Sep 17 00:00:00 2001 From: Bradley Massey Date: Mon, 6 Apr 2020 19:41:46 +0200 Subject: [PATCH] [anchore/stable] fix environment setting from existingSecret (#21764) Signed-off-by: Bradley Massey --- stable/anchore-engine/Chart.yaml | 2 +- stable/anchore-engine/templates/api_deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/anchore-engine/Chart.yaml b/stable/anchore-engine/Chart.yaml index 8095e9733d..27df955906 100644 --- a/stable/anchore-engine/Chart.yaml +++ b/stable/anchore-engine/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: anchore-engine -version: 1.5.0 +version: 1.5.1 appVersion: 0.7.0 description: Anchore container analysis and policy evaluation engine service keywords: diff --git a/stable/anchore-engine/templates/api_deployment.yaml b/stable/anchore-engine/templates/api_deployment.yaml index 1abb4be0b8..1446a5bbbb 100644 --- a/stable/anchore-engine/templates/api_deployment.yaml +++ b/stable/anchore-engine/templates/api_deployment.yaml @@ -91,7 +91,7 @@ spec: - name: ANCHORE_CLI_PASS valueFrom: secretKeyRef: - name: {{ include "anchore-engine.fullname" . }} + name: {{ default (include "anchore-engine.fullname" .) .Values.anchoreGlobal.existingSecret }} key: ANCHORE_ADMIN_PASSWORD ports: - containerPort: {{ .Values.anchoreApi.service.port }}