Skip to content

Commit 580c351

Browse files
Add optional field to ClusterExtension API to skip CRD upgrade safety checks
Signed-off-by: Rashmi Gottipati <[email protected]>
1 parent 039eaff commit 580c351

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

api/v1alpha1/clusterextension_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ type ClusterExtensionSpec struct {
7373
// the bundle may contain resources that are cluster-scoped or that are
7474
// installed in a different namespace. This namespace is expected to exist.
7575
InstallNamespace string `json:"installNamespace"`
76+
77+
//+kubebuilder:Optional
78+
// skipCRDUpgradeSafetyCheck specifies whether or not the CRD upgrade safety checks should be skipped when attempting to install the cluster extension.
79+
SkipCRDUpgradeSafetyCheck bool `json:"skipCRDUpgradeSafetyCheck,omitempty"`
7680
}
7781

7882
const (

config/crd/bases/olm.operatorframework.io_clusterextensions.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ spec:
5656
maxLength: 48
5757
pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
5858
type: string
59+
skipCRDUpgradeSafetyCheck:
60+
description: skipCRDUpgradeSafetyCheck specifies whether or not the
61+
CRD upgrade safety checks should be skipped when attempting to install
62+
the cluster extension.
63+
type: boolean
5964
upgradeConstraintPolicy:
6065
default: Enforce
6166
description: Defines the policy for how to handle upgrade constraints

0 commit comments

Comments
 (0)