Skip to content

Commit d83c5f0

Browse files
committed
#180 Added "Schedule" print column to ScheduledScan CRD
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent 0fe8e47 commit d83c5f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎operator/apis/execution/v1/scheduledscan_types.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ type ScheduledScanSpec struct {
2121
// +kubebuilder:validation:Optional
2222
Interval metav1.Duration `json:"interval"`
2323

24-
// +kubebuilder:validation:MinLength=0
25-
// +kubebuilder:validation:Optional
2624
// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
25+
// +kubebuilder:validation:Optional
2726
Schedule string `json:"schedule"`
2827

2928
// SuccessfulJobsHistoryLimit determines how many past Scans will be kept until the oldest one will be deleted, defaults to 3. When set to 0, Scans will be deleted directly after completion
@@ -65,6 +64,7 @@ type ScheduledScanStatus struct {
6564
// +kubebuilder:printcolumn:name="UID",type=string,JSONPath=`.metadata.uid`,description="K8s Resource UID",priority=1
6665
// +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.spec.scanSpec.scanType`,description="Scan Type"
6766
// +kubebuilder:printcolumn:name="Interval",type=string,JSONPath=`.spec.interval`,description="Interval"
67+
// +kubebuilder:printcolumn:name="Schedule",type=string,JSONPath=`.spec.schedule`,description="Schedule"
6868
// +kubebuilder:printcolumn:name="Findings",type=string,JSONPath=`.status.findings.count`,description="Total Finding Count"
6969
// +kubebuilder:printcolumn:name="Parameters",type=string,JSONPath=`.spec.scanSpec.parameters`,description="Arguments passed to the Scanner",priority=1
7070

0 commit comments

Comments
 (0)