From c7c1855d5e5d4e1faec2cc528c6b8cad137e55ed Mon Sep 17 00:00:00 2001 From: Ludovic Cleroux Date: Wed, 15 Nov 2023 12:23:19 +0100 Subject: [PATCH] ROX-20740 Disable local scanner on dogfood --- .../charts/secured-cluster/templates/secured-cluster-cr.yaml | 3 +++ .../helm/rhacs-terraform/charts/secured-cluster/values.yaml | 1 + dp-terraform/helm/rhacs-terraform/values.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/dp-terraform/helm/rhacs-terraform/charts/secured-cluster/templates/secured-cluster-cr.yaml b/dp-terraform/helm/rhacs-terraform/charts/secured-cluster/templates/secured-cluster-cr.yaml index 7b07e362a8..729686e5c1 100644 --- a/dp-terraform/helm/rhacs-terraform/charts/secured-cluster/templates/secured-cluster-cr.yaml +++ b/dp-terraform/helm/rhacs-terraform/charts/secured-cluster/templates/secured-cluster-cr.yaml @@ -45,6 +45,9 @@ spec: resources: {{ toYaml .Values.compliance.resources | nindent 8 }} {{- end }} scanner: + {{- if .Values.scanner.scannerComponent }} + scannerComponent: {{ .Values.scanner.scannerComponent }} + {{- end }} analyzer: {{- if .Values.scanner.analyzer.resources }} resources: {{ toYaml .Values.scanner.analyzer.resources | nindent 8 }} diff --git a/dp-terraform/helm/rhacs-terraform/charts/secured-cluster/values.yaml b/dp-terraform/helm/rhacs-terraform/charts/secured-cluster/values.yaml index 5ea59e7aac..96f255213a 100644 --- a/dp-terraform/helm/rhacs-terraform/charts/secured-cluster/values.yaml +++ b/dp-terraform/helm/rhacs-terraform/charts/secured-cluster/values.yaml @@ -30,6 +30,7 @@ compliance: memory: 100Mi cpu: 100m scanner: + scannerComponent: null analyzer: tolerations: [] nodeSelector: {} diff --git a/dp-terraform/helm/rhacs-terraform/values.yaml b/dp-terraform/helm/rhacs-terraform/values.yaml index 1db7a547b6..395bf25105 100644 --- a/dp-terraform/helm/rhacs-terraform/values.yaml +++ b/dp-terraform/helm/rhacs-terraform/values.yaml @@ -216,6 +216,7 @@ secured-cluster: nodeSelector: node-role.kubernetes.io/acscs-infra: "" scanner: + scannerComponent: Disabled analyzer: tolerations: - key: node-role.kubernetes.io/acscs-infra