Skip to content

Commit ddfdf2e

Browse files
authored
Merge pull request #748 from secureCodeBox/feature/auto-discovery-scheduledscan-retriggering
Let AutoDiscovery create ScheduledScans with `RetriggerOnScanTypeChange` enabled
2 parents 2092f48 + 9a83a63 commit ddfdf2e

File tree

4 files changed

+212
-223
lines changed

4 files changed

+212
-223
lines changed

auto-discovery/kubernetes/controllers/service_scan_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ func generateScanSpec(autoDiscoveryConfig configv1.AutoDiscoveryConfig, scanConf
421421
ScanType: scanConfig.ScanType,
422422
Parameters: params,
423423
},
424+
RetriggerOnScanTypeChange: true,
424425
}
425426

426427
return scheduledScanSpec

auto-discovery/kubernetes/demo/juice-shop.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ spec:
6161
apiVersion: helm.fluxcd.io/v1
6262
kind: HelmRelease
6363
metadata:
64-
name: zap-advanced-scan
64+
name: zap-advanced
6565
namespace: juice-shop
6666
spec:
6767
chart:
6868
repository: https://charts.securecodebox.io
69-
version: 2.7.2
70-
name: zap-advanced-scan
69+
version: 3.2.0
70+
name: zap-advanced

auto-discovery/kubernetes/go.mod

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ require (
1010
github.com/Masterminds/goutils v1.1.1 // indirect
1111
github.com/Masterminds/semver v1.5.0 // indirect
1212
github.com/Masterminds/sprig v2.22.0+incompatible
13-
github.com/go-logr/logr v0.3.0
13+
github.com/go-logr/logr v0.4.0
1414
github.com/huandu/xstrings v1.3.2 // indirect
1515
github.com/mitchellh/copystructure v1.2.0 // indirect
16-
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
1716
github.com/onsi/ginkgo v1.14.1
1817
github.com/onsi/gomega v1.10.2
19-
github.com/secureCodeBox/secureCodeBox/operator v0.0.0-20210512114551-f7af2ead2c3d
20-
github.com/stretchr/testify v1.5.1
21-
k8s.io/api v0.19.2
22-
k8s.io/apimachinery v0.19.2
23-
k8s.io/client-go v0.19.2
24-
sigs.k8s.io/controller-runtime v0.7.2
18+
github.com/secureCodeBox/secureCodeBox/operator v0.0.0-20211020071729-60497d02f10d
19+
github.com/stretchr/testify v1.6.1
20+
k8s.io/api v0.20.2
21+
k8s.io/apimachinery v0.20.2
22+
k8s.io/client-go v0.20.2
23+
sigs.k8s.io/controller-runtime v0.8.3
2524
)

0 commit comments

Comments
 (0)