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

Commit b9c9547

Browse files
committed
Add interval field to SchedulesScans PrintColumns
1 parent ac42ef3 commit b9c9547

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

operator/apis/execution/v1/scheduledscan_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type ScheduledScanStatus struct {
5454
// +kubebuilder:subresource:status
5555
// +kubebuilder:printcolumn:name="UID",type=string,JSONPath=`.metadata.uid`,description="K8s Resource UID",priority=1
5656
// +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.spec.scanSpec.scanType`,description="Scan Type"
57+
// +kubebuilder:printcolumn:name="Interval",type=string,JSONPath=`.spec.interval`,description="Interval"
5758
// +kubebuilder:printcolumn:name="Findings",type=string,JSONPath=`.status.findings.count`,description="Total Finding Count"
5859
// +kubebuilder:printcolumn:name="Parameters",type=string,JSONPath=`.spec.scanSpec.parameters`,description="Arguments passed to the Scanner",priority=1
5960

operator/config/crd/bases/execution.experimental.securecodebox.io_scheduledscans.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ spec:
1818
description: Scan Type
1919
name: Type
2020
type: string
21+
- JSONPath: .spec.interval
22+
description: Interval
23+
name: Interval
24+
type: string
2125
- JSONPath: .status.findings.count
2226
description: Total Finding Count
2327
name: Findings

operator/crds/execution.experimental.securecodebox.io_scheduledscans.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ spec:
1818
description: Scan Type
1919
name: Type
2020
type: string
21+
- JSONPath: .spec.interval
22+
description: Interval
23+
name: Interval
24+
type: string
2125
- JSONPath: .status.findings.count
2226
description: Total Finding Count
2327
name: Findings

0 commit comments

Comments
 (0)