diff --git a/chart/templates/engine_configmap.yaml b/chart/templates/engine_configmap.yaml index 7cd2edf3ae3055ac1a2ae7e1547836c9ee03ad4e..be0232ec8e2422be242eb121841e610fe238ec49 100644 --- a/chart/templates/engine_configmap.yaml +++ b/chart/templates/engine_configmap.yaml @@ -61,7 +61,7 @@ data: keys: {{- $anchorefullname := include "anchore-engine.fullname" . -}} {{- $old_secret := lookup "v1" "Secret" .Release.Namespace $anchorefullname }} - {{- if or .Values.anchoreGlobal.saml.secret .Values.anchoreGlobal.saml.useExistingSecret $old_secret }} + {{- if or .Values.anchoreGlobal.saml.secret .Values.anchoreGlobal.saml.useExistingSecret .Values.anchoreGlobal.oauthEnabled $old_secret }} secret: ${ANCHORE_SAML_SECRET} {{- end }} {{- with .Values.anchoreGlobal.saml.publicKeyName }} diff --git a/chart/templates/enterprise_configmap.yaml b/chart/templates/enterprise_configmap.yaml index ba75b31b1a4156f48e7feaa63dc71567af368226..c793738e3094cab2f56dc6e9514cb5043eb05b2b 100644 --- a/chart/templates/enterprise_configmap.yaml +++ b/chart/templates/enterprise_configmap.yaml @@ -43,7 +43,7 @@ data: keys: {{- $anchorefullname := include "anchore-engine.fullname" . -}} {{- $old_secret := lookup "v1" "Secret" .Release.Namespace $anchorefullname }} - {{- if or .Values.anchoreGlobal.saml.secret .Values.anchoreGlobal.saml.useExistingSecret $old_secret }} + {{- if or .Values.anchoreGlobal.saml.secret .Values.anchoreGlobal.saml.useExistingSecret .Values.anchoreGlobal.oauthEnabled $old_secret }} secret: ${ANCHORE_SAML_SECRET} {{- end }} {{- with .Values.anchoreGlobal.saml.publicKeyName }} diff --git a/chart/templates/enterprise_feeds_configmap.yaml b/chart/templates/enterprise_feeds_configmap.yaml index 6b2e87e0d47d24751a3888248ea39d1c9d5d55b3..130beff6713f51c43831ccf14d341c3d1656ca59 100644 --- a/chart/templates/enterprise_feeds_configmap.yaml +++ b/chart/templates/enterprise_feeds_configmap.yaml @@ -37,7 +37,7 @@ data: keys: {{- $anchorefullname := include "anchore-engine.fullname" . -}} {{- $old_secret := lookup "v1" "Secret" .Release.Namespace $anchorefullname }} - {{- if or .Values.anchoreGlobal.saml.secret .Values.anchoreGlobal.saml.useExistingSecret $old_secret }} + {{- if or .Values.anchoreGlobal.saml.secret .Values.anchoreGlobal.saml.useExistingSecret .Values.anchoreGlobal.oauthEnabled $old_secret }} secret: ${ANCHORE_SAML_SECRET} {{- end }} {{- with .Values.anchoreGlobal.saml.publicKeyName }} diff --git a/docs/BBCHANGES.md b/docs/BBCHANGES.md index 5869b8c312685b1ff499c7c1aff3f26149183afb..74faeda418637e4ec217201e26540ccffddce961 100644 --- a/docs/BBCHANGES.md +++ b/docs/BBCHANGES.md @@ -238,7 +238,7 @@ Additionally, `./chart/templates/engine_configmap.yaml`, `./chart/templates/ente keys: {{- $anchorefullname := include "anchore-engine.fullname" . -}} {{- $old_secret := lookup "v1" "Secret" .Release.Namespace $anchorefullname }} - {{- if or .Values.anchoreGlobal.saml.secret .Values.anchoreGlobal.saml.useExistingSecret $old_secret }} + {{- if or .Values.anchoreGlobal.saml.secret .Values.anchoreGlobal.saml.useExistingSecret .Values.anchoreGlobal.oauthEnabled $old_secret }} secret: ${ANCHORE_SAML_SECRET} {{- end }} ``` \ No newline at end of file