Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions operator/apis/execution/v1/scan_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,23 @@ import (
type CascadeSpec struct {
// InheritLabels defines whether cascading scans should inherit labels from the parent scan
// +optional
InheritLabels bool `json:"inheritLabels,omitempty"`
// +kubebuilder:default=true
InheritLabels bool `json:"inheritLabels"`

// InheritAnnotations defines whether cascading scans should inherit annotations from the parent scan
// +optional
InheritAnnotations bool `json:"inheritAnnotations,omitempty"`
// +kubebuilder:default=true
InheritAnnotations bool `json:"inheritAnnotations"`

// InheritEnv defines whether cascading scans should inherit environment variables from the parent scan
// +optional
InheritEnv bool `json:"inheritEnv,omitempty"`
// +kubebuilder:default=false
InheritEnv bool `json:"inheritEnv"`

// InheritVolumes defines whether cascading scans should inherit volumes and volume mounts from the parent scan
// +optional
InheritVolumes bool `json:"inheritVolumes,omitempty"`
// +kubebuilder:default=false
InheritVolumes bool `json:"inheritVolumes"`

// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
// map is equivalent to an element of matchExpressions, whose key field is "key", the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,22 @@ spec:
should be generated.
properties:
inheritAnnotations:
default: true
description: InheritAnnotations defines whether cascading
scans should inherit annotations from the parent scan
type: boolean
inheritEnv:
default: false
description: InheritEnv defines whether cascading scans should
inherit environment variables from the parent scan
type: boolean
inheritLabels:
default: true
description: InheritLabels defines whether cascading scans
should inherit labels from the parent scan
type: boolean
inheritVolumes:
default: false
description: InheritVolumes defines whether cascading scans
should inherit volumes and volume mounts from the parent
scan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,22 @@ spec:
be generated.
properties:
inheritAnnotations:
default: true
description: InheritAnnotations defines whether cascading scans
should inherit annotations from the parent scan
type: boolean
inheritEnv:
default: false
description: InheritEnv defines whether cascading scans should
inherit environment variables from the parent scan
type: boolean
inheritLabels:
default: true
description: InheritLabels defines whether cascading scans should
inherit labels from the parent scan
type: boolean
inheritVolumes:
default: false
description: InheritVolumes defines whether cascading scans should
inherit volumes and volume mounts from the parent scan
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,22 @@ spec:
should be generated.
properties:
inheritAnnotations:
default: true
description: InheritAnnotations defines whether cascading
scans should inherit annotations from the parent scan
type: boolean
inheritEnv:
default: false
description: InheritEnv defines whether cascading scans should
inherit environment variables from the parent scan
type: boolean
inheritLabels:
default: true
description: InheritLabels defines whether cascading scans
should inherit labels from the parent scan
type: boolean
inheritVolumes:
default: false
description: InheritVolumes defines whether cascading scans
should inherit volumes and volume mounts from the parent
scan
Expand Down
4 changes: 4 additions & 0 deletions operator/crds/cascading.securecodebox.io_cascadingrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,22 @@ spec:
should be generated.
properties:
inheritAnnotations:
default: true
description: InheritAnnotations defines whether cascading
scans should inherit annotations from the parent scan
type: boolean
inheritEnv:
default: false
description: InheritEnv defines whether cascading scans should
inherit environment variables from the parent scan
type: boolean
inheritLabels:
default: true
description: InheritLabels defines whether cascading scans
should inherit labels from the parent scan
type: boolean
inheritVolumes:
default: false
description: InheritVolumes defines whether cascading scans
should inherit volumes and volume mounts from the parent
scan
Expand Down
4 changes: 4 additions & 0 deletions operator/crds/execution.securecodebox.io_scans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,22 @@ spec:
be generated.
properties:
inheritAnnotations:
default: true
description: InheritAnnotations defines whether cascading scans
should inherit annotations from the parent scan
type: boolean
inheritEnv:
default: false
description: InheritEnv defines whether cascading scans should
inherit environment variables from the parent scan
type: boolean
inheritLabels:
default: true
description: InheritLabels defines whether cascading scans should
inherit labels from the parent scan
type: boolean
inheritVolumes:
default: false
description: InheritVolumes defines whether cascading scans should
inherit volumes and volume mounts from the parent scan
type: boolean
Expand Down
4 changes: 4 additions & 0 deletions operator/crds/execution.securecodebox.io_scheduledscans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,22 @@ spec:
should be generated.
properties:
inheritAnnotations:
default: true
description: InheritAnnotations defines whether cascading
scans should inherit annotations from the parent scan
type: boolean
inheritEnv:
default: false
description: InheritEnv defines whether cascading scans should
inherit environment variables from the parent scan
type: boolean
inheritLabels:
default: true
description: InheritLabels defines whether cascading scans
should inherit labels from the parent scan
type: boolean
inheritVolumes:
default: false
description: InheritVolumes defines whether cascading scans
should inherit volumes and volume mounts from the parent
scan
Expand Down