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

Commit ee24095

Browse files
committed
Add additional printerColumns only show when using -o wide
1 parent 3a4ee2a commit ee24095

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

operator/apis/execution/v1/scan_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ type FindingSeverities struct {
5959

6060
// +kubebuilder:object:root=true
6161
// +kubebuilder:subresource:status
62+
// +kubebuilder:printcolumn:name="UID",type=string,JSONPath=`.metadata.uid`,description="K8s Resource UID",priority=1
6263
// +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.spec.scanType`,description="Scan Type"
6364
// +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state`,description="Scan State"
6465
// +kubebuilder:printcolumn:name="Findings",type=string,JSONPath=`.status.findingCount`,description="Total Finding Count"
66+
// +kubebuilder:printcolumn:name="Parameters",type=string,JSONPath=`.spec.parameters`,description="Arguments passed to the Scanner",priority=1
6567

6668
// Scan is the Schema for the scans API
6769
type Scan struct {

0 commit comments

Comments
 (0)