Skip to content

Commit

Permalink
fix: update default values for configmap (#2439)
Browse files Browse the repository at this point in the history
* fix: update default values for configmap

* chore: update Trivy version in default settings

* test: update test
  • Loading branch information
afdesk authored Feb 19, 2025
1 parent 9b6b5f4 commit 9463f1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/plugins/trivy/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ func TestPlugin_Init(t *testing.T) {
},
Data: map[string]string{
"trivy.repository": DefaultImageRepository,
"trivy.tag": "0.52.2",
"trivy.tag": "0.59.1",
"trivy.severity": DefaultSeverity,
"trivy.slow": "true",
"trivy.mode": string(Standalone),
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugins/trivy/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (p *plugin) Init(ctx trivyoperator.PluginContext) error {
return ctx.EnsureConfig(trivyoperator.PluginConfig{
Data: map[string]string{
keyTrivyImageRepository: DefaultImageRepository,
keyTrivyImageTag: "0.52.2",
keyTrivyImageTag: "0.59.1",
KeyTrivySeverity: DefaultSeverity,
keyTrivySlow: "true",
keyTrivyMode: string(Standalone),
Expand Down
4 changes: 2 additions & 2 deletions pkg/trivyoperator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ func GetDefaultConfig() ConfigData {
KeyScanJobcompressLogs: "true",
keyComplianceFailEntriesLimit: "10",
KeyReportRecordFailedChecksOnly: "true",
KeyNodeCollectorImageRef: "ghcr.io/aquasecurity/node-collector:0.2.1",
KeyPoliciesBundleOciRef: "mirror.gcr.io/aquasec/trivy-checks:0",
KeyNodeCollectorImageRef: "gcr.io/aquasecurity/node-collector:0.3.1",
KeyPoliciesBundleOciRef: "mirror.gcr.io/aquasec/trivy-checks:1",
}
}

Expand Down

0 comments on commit 9463f1d

Please sign in to comment.