From d791e01631356da48fc5bd7003a35c7d59a1413b Mon Sep 17 00:00:00 2001 From: Gal Amit Date: Wed, 1 Nov 2023 16:16:42 +0200 Subject: [PATCH] enable cluster scanner secret detection by default --- api/v1/cluster_scanning_types.go | 2 +- .../cbcontainers-operator-chart/templates/operator.yaml | 2 +- .../operator.containers.carbonblack.io_cbcontainersagents.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1/cluster_scanning_types.go b/api/v1/cluster_scanning_types.go index a2dc4380..5efad3aa 100644 --- a/api/v1/cluster_scanning_types.go +++ b/api/v1/cluster_scanning_types.go @@ -51,7 +51,7 @@ type CBContainersClusterScannerAgentSpec struct { } type CLIFlags struct { - // +kubebuilder:default:=false + // +kubebuilder:default:=true EnableSecretDetection bool `json:"enableSecretDetection,omitempty"` // +kubebuilder:default:={} SkipDirsOrFiles []string `json:"skipDirsOrFiles,omitempty"` diff --git a/charts/cbcontainers-operator/cbcontainers-operator-chart/templates/operator.yaml b/charts/cbcontainers-operator/cbcontainers-operator-chart/templates/operator.yaml index bc052549..2fa01532 100644 --- a/charts/cbcontainers-operator/cbcontainers-operator-chart/templates/operator.yaml +++ b/charts/cbcontainers-operator/cbcontainers-operator-chart/templates/operator.yaml @@ -3450,7 +3450,7 @@ spec: default: {} properties: enableSecretDetection: - default: false + default: true type: boolean ignoreBuildInRegex: default: false diff --git a/config/crd/bases/operator.containers.carbonblack.io_cbcontainersagents.yaml b/config/crd/bases/operator.containers.carbonblack.io_cbcontainersagents.yaml index 9c409c03..8536a840 100644 --- a/config/crd/bases/operator.containers.carbonblack.io_cbcontainersagents.yaml +++ b/config/crd/bases/operator.containers.carbonblack.io_cbcontainersagents.yaml @@ -3440,7 +3440,7 @@ spec: default: {} properties: enableSecretDetection: - default: false + default: true type: boolean ignoreBuildInRegex: default: false