Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 39dd46a

Browse files
committed
Use ScanType instead of the portType on the Scan Name to allow for miltiple different scans per port
1 parent fbeaada commit 39dd46a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/controllers/targets/host_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (r *HostReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
7575
scanTemplates := CreateScanTemplatesForHost(host)
7676

7777
for _, scanTemplate := range scanTemplates {
78-
scanName := fmt.Sprintf("%s-%s-%d", host.Name, scanTemplate.Type, scanTemplate.Port)
78+
scanName := fmt.Sprintf("%s-%s-%d", host.Name, scanTemplate.ScanSpec.ScanType, scanTemplate.Port)
7979

8080
var scan executionv1.ScheduledScan
8181
err := r.Get(ctx, types.NamespacedName{Name: scanName, Namespace: req.Namespace}, &scan)

0 commit comments

Comments
 (0)