Skip to content

Commit

Permalink
docs: update description of successfulScansHistoryLimit and failedSca…
Browse files Browse the repository at this point in the history
…nsHistoryLimit clusterscan fields
  • Loading branch information
matheusfm committed Sep 4, 2023
1 parent 4329d87 commit 1f6889a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
10 changes: 4 additions & 6 deletions api/zora/v1alpha1/clusterscan_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@ type ClusterScanSpec struct {
// The list of Plugin references that are used to scan the referenced Cluster. Defaults to 'popeye'
Plugins []PluginReference `json:"plugins,omitempty"`

// SuccessfulScansHistoryLimit specifies the amount of successfully
// completed scan Jobs to be kept in the cluster. This field is analogous
// to <Cronjob.Spec.SuccessfulJobsHistoryLimit> from the <batch> package.
// The number of successful finished scans and their issues to retain. Value must be non-negative integer.
// Defaults to 3.
// +kubebuilder:validation:Minimum=0
// +kubebuilder:default=3
SuccessfulScansHistoryLimit *int32 `json:"successfulScansHistoryLimit,omitempty"`

// FailedScansHistoryLimit specifies the amount of failed scan Jobs to be
// kept in the cluster. This field is analogous to
// <Cronjob.Spec.FailedScansHistoryLimit> from the <batch> package.
// The number of failed finished scans to retain. Value must be non-negative integer.
// Defaults to 1.
// +kubebuilder:validation:Minimum=0
// +kubebuilder:default=1
FailedScansHistoryLimit *int32 `json:"failedScansHistoryLimit,omitempty"`
Expand Down
10 changes: 4 additions & 6 deletions charts/zora/crds/zora.undistro.io_clusterscans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ spec:
x-kubernetes-map-type: atomic
failedScansHistoryLimit:
default: 1
description: FailedScansHistoryLimit specifies the amount of failed
scan Jobs to be kept in the cluster. This field is analogous to
<Cronjob.Spec.FailedScansHistoryLimit> from the <batch> package.
description: The number of failed finished scans to retain. Value
must be non-negative integer. Defaults to 1.
format: int32
minimum: 0
type: integer
Expand Down Expand Up @@ -246,9 +245,8 @@ spec:
type: string
successfulScansHistoryLimit:
default: 3
description: SuccessfulScansHistoryLimit specifies the amount of successfully
completed scan Jobs to be kept in the cluster. This field is analogous
to <Cronjob.Spec.SuccessfulJobsHistoryLimit> from the <batch> package.
description: The number of successful finished scans and their issues
to retain. Value must be non-negative integer. Defaults to 3.
format: int32
minimum: 0
type: integer
Expand Down
10 changes: 4 additions & 6 deletions config/crd/bases/zora.undistro.io_clusterscans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ spec:
x-kubernetes-map-type: atomic
failedScansHistoryLimit:
default: 1
description: FailedScansHistoryLimit specifies the amount of failed
scan Jobs to be kept in the cluster. This field is analogous to
<Cronjob.Spec.FailedScansHistoryLimit> from the <batch> package.
description: The number of failed finished scans to retain. Value
must be non-negative integer. Defaults to 1.
format: int32
minimum: 0
type: integer
Expand Down Expand Up @@ -232,9 +231,8 @@ spec:
type: string
successfulScansHistoryLimit:
default: 3
description: SuccessfulScansHistoryLimit specifies the amount of successfully
completed scan Jobs to be kept in the cluster. This field is analogous
to <Cronjob.Spec.SuccessfulJobsHistoryLimit> from the <batch> package.
description: The number of successful finished scans and their issues
to retain. Value must be non-negative integer. Defaults to 3.
format: int32
minimum: 0
type: integer
Expand Down

0 comments on commit 1f6889a

Please sign in to comment.