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

Description
Describe the bug
If a scan will be installed without the corresponding scanType installed in the same namespace, the scan fail with an error like the following:
kubectl describe scan nmap-test-lan-1599724134 -n company-scans:
Name: nmap-test-lan-1599724134
Namespace: company-scans
Labels: attack-surface=external
Annotations: <none>
API Version: execution.experimental.securecodebox.io/v1
Kind: Scan
.....
Status:
Error Description: Configured ScanType 'nmap' not found in Scans Namespace. You'll likely need to deploy the ScanType.
Findings:
Severities:
State: Errored
Events: <none>
The error message should respect the correct namespace for example in this case:
Configured ScanType 'nmap' not found in 'company-scans' namespace. You'll likely need to deploy the ScanType.