From 9010b3ee57f6afcd59c5e3841c17043370c4469b Mon Sep 17 00:00:00 2001 From: Brady Todhunter Date: Wed, 28 Apr 2021 16:10:18 -0700 Subject: [PATCH] configure github feed sync based on anchoreEnterpriseFeeds.githubDriverEnabled when anchoreEnterpriseGlobal.enabled=true Signed-off-by: Brady Todhunter --- stable/anchore-engine/templates/engine_configmap.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/anchore-engine/templates/engine_configmap.yaml b/stable/anchore-engine/templates/engine_configmap.yaml index 2b52e440..c1e2dda8 100644 --- a/stable/anchore-engine/templates/engine_configmap.yaml +++ b/stable/anchore-engine/templates/engine_configmap.yaml @@ -45,7 +45,9 @@ data: # If enabled only sync specific feeds instead of all that are found. enabled: true feeds: - {{- if not .Values.anchoreEnterpriseGlobal.enabled }} + {{- if .Values.anchoreEnterpriseGlobal.enabled }} + github: {{ .Values.anchoreEnterpriseFeeds.githubDriverEnabled }} + {{- else }} github: {{ default "true" .Values.anchoreGlobal.syncGithub }} {{- end }} # Vulnerabilities feed is the feed for distro cve sources (redhat, debian, ubuntu, oracle, alpine....)