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

Wrong namespace used in error message #85

@rfelber

Description

@rfelber

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions