From c2408d9cc07554bf7919cc36c5a92d53a6052b5f Mon Sep 17 00:00:00 2001 From: Gal Amit Date: Wed, 1 Nov 2023 16:11: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 af2868e3..6bc2b5ee 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 6109fb6e..5ea371a5 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