diff --git a/api/v1alpha2/bundledeployment_types.go b/api/v1alpha2/bundledeployment_types.go index 67404b4e..01a5a497 100644 --- a/api/v1alpha2/bundledeployment_types.go +++ b/api/v1alpha2/bundledeployment_types.go @@ -77,7 +77,7 @@ type BundleDeploymentSpec struct { // PreflightConfig holds the configuration for the preflight checks. type PreflightConfig struct { - //+kubebuilder:Optional + //+kubebuilder:Required // CRDUpgradeSafety holds necessary configuration for the CRD Upgrade Safety preflight checks. CRDUpgradeSafety *CRDUpgradeSafetyPreflightConfig `json:"crdUpgradeSafety,omitempty"` } @@ -85,7 +85,7 @@ type PreflightConfig struct { // CRDUpgradeSafetyPreflightConfig is the configuration for CRD upgrade safety preflight check. type CRDUpgradeSafetyPreflightConfig struct { //+kubebuilder:default:=true - //+kubebuilder:Optional + //+kubebuilder:Required // Enabled represents the state of the CRD upgrade safety preflight check being enabled/disabled. // The default value is true. Enabled bool `json:"enabled,omitempty"`