diff --git a/operator/apis/execution/v1/scan_types.go b/operator/apis/execution/v1/scan_types.go index 6bddae27e5..6b520befe9 100644 --- a/operator/apis/execution/v1/scan_types.go +++ b/operator/apis/execution/v1/scan_types.go @@ -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 diff --git a/operator/config/crd/bases/cascading.securecodebox.io_cascadingrules.yaml b/operator/config/crd/bases/cascading.securecodebox.io_cascadingrules.yaml index e181c76b28..ef66c6298f 100644 --- a/operator/config/crd/bases/cascading.securecodebox.io_cascadingrules.yaml +++ b/operator/config/crd/bases/cascading.securecodebox.io_cascadingrules.yaml @@ -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 diff --git a/operator/config/crd/bases/execution.securecodebox.io_scans.yaml b/operator/config/crd/bases/execution.securecodebox.io_scans.yaml index cc38bfe839..a8232a31ce 100644 --- a/operator/config/crd/bases/execution.securecodebox.io_scans.yaml +++ b/operator/config/crd/bases/execution.securecodebox.io_scans.yaml @@ -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 diff --git a/operator/config/crd/bases/execution.securecodebox.io_scheduledscans.yaml b/operator/config/crd/bases/execution.securecodebox.io_scheduledscans.yaml index 3264a249a8..6d88622cbd 100644 --- a/operator/config/crd/bases/execution.securecodebox.io_scheduledscans.yaml +++ b/operator/config/crd/bases/execution.securecodebox.io_scheduledscans.yaml @@ -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 diff --git a/operator/crds/cascading.securecodebox.io_cascadingrules.yaml b/operator/crds/cascading.securecodebox.io_cascadingrules.yaml index 1de052d5b4..74d7174d87 100644 --- a/operator/crds/cascading.securecodebox.io_cascadingrules.yaml +++ b/operator/crds/cascading.securecodebox.io_cascadingrules.yaml @@ -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 diff --git a/operator/crds/execution.securecodebox.io_scans.yaml b/operator/crds/execution.securecodebox.io_scans.yaml index 398dfd7f4e..6fd42bc82d 100644 --- a/operator/crds/execution.securecodebox.io_scans.yaml +++ b/operator/crds/execution.securecodebox.io_scans.yaml @@ -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 diff --git a/operator/crds/execution.securecodebox.io_scheduledscans.yaml b/operator/crds/execution.securecodebox.io_scheduledscans.yaml index 77652b7458..1684ea8064 100644 --- a/operator/crds/execution.securecodebox.io_scheduledscans.yaml +++ b/operator/crds/execution.securecodebox.io_scheduledscans.yaml @@ -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