diff --git a/api/v1alpha1/clusterextension_types.go b/api/v1alpha1/clusterextension_types.go index cd87db021..5fe7071d2 100644 --- a/api/v1alpha1/clusterextension_types.go +++ b/api/v1alpha1/clusterextension_types.go @@ -73,6 +73,10 @@ type ClusterExtensionSpec struct { // the bundle may contain resources that are cluster-scoped or that are // installed in a different namespace. This namespace is expected to exist. InstallNamespace string `json:"installNamespace"` + + //+kubebuilder:Optional + // skipCRDUpgradeSafetyCheck specifies whether or not the CRD upgrade safety checks should be skipped when attempting to install the cluster extension. + SkipCRDUpgradeSafetyCheck bool `json:"skipCRDUpgradeSafetyCheck,omitempty"` } const ( diff --git a/config/crd/bases/olm.operatorframework.io_clusterextensions.yaml b/config/crd/bases/olm.operatorframework.io_clusterextensions.yaml index 2b0ebb960..6cb774f8d 100644 --- a/config/crd/bases/olm.operatorframework.io_clusterextensions.yaml +++ b/config/crd/bases/olm.operatorframework.io_clusterextensions.yaml @@ -56,6 +56,11 @@ spec: maxLength: 48 pattern: ^[a-z0-9]+(-[a-z0-9]+)*$ type: string + skipCRDUpgradeSafetyCheck: + description: skipCRDUpgradeSafetyCheck specifies whether or not the + CRD upgrade safety checks should be skipped when attempting to install + the cluster extension. + type: boolean upgradeConstraintPolicy: default: Enforce description: Defines the policy for how to handle upgrade constraints