Skip to content

Commit 176b022

Browse files
Reet00J12934
authored andcommitted
#2293 Added ttlSecondsAfterFinished option to enable automatic removal of scans
Signed-off-by: Samreet Singh <samreet.singh@iteratec.com>
1 parent 5487f14 commit 176b022

5 files changed

Lines changed: 19 additions & 0 deletions

operator/apis/execution/v1/scan_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ type ScanSpec struct {
146146

147147
// Resources lets you control resource limits and requests for the parser container. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
148148
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
149+
150+
TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"`
149151
}
150152

151153
type ScanState string

operator/apis/execution/v1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

operator/crds/cascading.securecodebox.io_cascadingrules.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2684,6 +2684,10 @@ spec:
26842684
type: string
26852685
type: object
26862686
type: array
2687+
ttlSecondsAfterFinished:
2688+
description: Time in seconds after which the scan should be deleted automatically.
2689+
format: int32
2690+
type: integer
26872691
volumeMounts:
26882692
description: VolumeMounts allows to specify volume mounts for
26892693
the scan container.

operator/crds/execution.securecodebox.io_scans.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,6 +2623,10 @@ spec:
26232623
type: string
26242624
type: object
26252625
type: array
2626+
ttlSecondsAfterFinished:
2627+
description: Time in seconds after which the scan should be deleted automatically.
2628+
format: int32
2629+
type: integer
26262630
volumeMounts:
26272631
description: VolumeMounts allows to specify volume mounts for the
26282632
scan container.

operator/crds/execution.securecodebox.io_scheduledscans.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,6 +2678,10 @@ spec:
26782678
type: string
26792679
type: object
26802680
type: array
2681+
ttlSecondsAfterFinished:
2682+
description: Time in seconds after which the scan should be deleted automatically.
2683+
format: int32
2684+
type: integer
26812685
volumeMounts:
26822686
description: VolumeMounts allows to specify volume mounts for
26832687
the scan container.

0 commit comments

Comments
 (0)