From c7eb026d9d8bbbe3f06a830fe91ce7c0d5bfc4e4 Mon Sep 17 00:00:00 2001 From: Rashmi Gottipati Date: Wed, 29 May 2024 10:38:56 -0400 Subject: [PATCH] Address latest review comment Signed-off-by: Rashmi Gottipati --- api/v1alpha2/bundledeployment_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"`