Skip to content

Commit

Permalink
fix: sbom generation enable by default (#1355)
Browse files Browse the repository at this point in the history
* fix: sbom generation enable by default

Signed-off-by: chenk <hen.keinan@gmail.com>

* fix: sbom generation enable by default

Signed-off-by: chenk <hen.keinan@gmail.com>

---------

Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan authored Jul 11, 2023
1 parent 961e539 commit 546dd9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Keeps security report resources updated
| operator.privateRegistryScanSecretsNames | object | `{}` | privateRegistryScanSecretsNames is map of namespace:secrets, secrets are comma seperated which can be used to authenticate in private registries in case if there no imagePullSecrets provided example : {"mynamespace":"mySecrets,anotherSecret"} |
| operator.rbacAssessmentScannerEnabled | bool | `true` | rbacAssessmentScannerEnabled the flag to enable rbac assessment scanner |
| operator.replicas | int | `1` | replicas the number of replicas of the operator's pod |
| operator.sbomGenerationEnabled | bool | `false` | the flag to enable sbom generation |
| operator.sbomGenerationEnabled | bool | `true` | the flag to enable sbom generation |
| operator.scanJobTTL | string | `""` | scanJobTTL the set automatic cleanup time after the job is completed |
| operator.scanJobTimeout | string | `"5m"` | scanJobTimeout the length of time to wait before giving up on a scan job |
| operator.scanJobsConcurrentLimit | int | `10` | scanJobsConcurrentLimit the maximum number of scan jobs create by the operator |
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ operator:
# -- the flag to enable vulnerability scanner
vulnerabilityScannerEnabled: true
# -- the flag to enable sbom generation
sbomGenerationEnabled: false
sbomGenerationEnabled: true
# -- scannerReportTTL the flag to set how long a report should exist. "" means that the ScannerReportTTL feature is disabled
scannerReportTTL: "24h"
# -- configAuditScannerEnabled the flag to enable configuration audit scanner
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/etc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Config struct {
MetricsInfraAssessmentInfo bool `env:"OPERATOR_METRICS_INFRA_ASSESSMENT_INFO_ENABLED" envDefault:"false"`
HealthProbeBindAddress string `env:"OPERATOR_HEALTH_PROBE_BIND_ADDRESS" envDefault:":9090"`
VulnerabilityScannerEnabled bool `env:"OPERATOR_VULNERABILITY_SCANNER_ENABLED" envDefault:"true"`
SbomGenerationEnable bool `env:"OPERATOR_SBOM_GENERATION_ENABLED" envDefault:"false"`
SbomGenerationEnable bool `env:"OPERATOR_SBOM_GENERATION_ENABLED" envDefault:"true"`
VulnerabilityScannerScanOnlyCurrentRevisions bool `env:"OPERATOR_VULNERABILITY_SCANNER_SCAN_ONLY_CURRENT_REVISIONS" envDefault:"true"`
ScannerReportTTL *time.Duration `env:"OPERATOR_SCANNER_REPORT_TTL" envDefault:"24h"`
ClusterComplianceEnabled bool `env:"OPERATOR_CLUSTER_COMPLIANCE_ENABLED" envDefault:"true"`
Expand Down

0 comments on commit 546dd9c

Please sign in to comment.