@@ -85,18 +85,23 @@ type PreflightConfig struct {
8585 CRDUpgradeSafety CRDUpgradeSafetyPreflightConfig `json:"crdUpgradeSafety,omitempty"`
8686}
8787
88- // CRDUpgradeSafetyPreflightConfig is a custom type to hold value for the CRDUpgradeSafetyPreflightConfig
89- // that enables or disables the CRD Upgrade Safety validations.
90- type CRDUpgradeSafetyPreflightConfig string
88+ // CRDUpgradeSafetyPreflightConfig is a custom struct that holds the necessary configuration values to
89+ // enable or disable the CRD Upgrade Safety validations. Currently, this holds CRDUpgradeSafetyPreflightConfigType
90+ // that sets the CRD Upgrade Safety validations to either Enabled/Disabled.
91+ type CRDUpgradeSafetyPreflightConfig struct {
92+ CRDUpgradeSafetyPreflightConfigType CRDUpgradeSafetyPreflightConfigType `json:"crdUpgradeSafetyPreflightConfigType,omitempty"`
93+ }
94+
95+ type CRDUpgradeSafetyPreflightConfigType string
9196
9297const (
93- // CRDUpgradeSafetyPreflightConfigApply represents the default state for the
94- // CRD Upgrade Safety validations by setting it to "Apply ".
95- CRDUpgradeSafetyPreflightConfigApply CRDUpgradeSafetyPreflightConfig = "Apply "
98+ // CRDUpgradeSafetyPreflightConfigEnabled represents the default state for the
99+ // CRD Upgrade Safety validations by setting it to "Enabled ".
100+ CRDUpgradeSafetyPreflightConfigEnabled CRDUpgradeSafetyPreflightConfigType = "Enabled "
96101
97- // CRDUpgradeSafetyPreflightConfigSkip represents the option for the
98- // CRD Upgrade Safety validations to be skipped by setting it to "Skip ".
99- CRDUpgradeSafetyPreflightConfigSkip CRDUpgradeSafetyPreflightConfig = "Skip "
102+ // CRDUpgradeSafetyPreflightConfigDisabled represents the option for the
103+ // CRD Upgrade Safety validations to be disabled by setting it to "Disabled ".
104+ CRDUpgradeSafetyPreflightConfigDisabled CRDUpgradeSafetyPreflightConfigType = "Disabled "
100105)
101106
102107const (
0 commit comments