Skip to content

Commit 5423a55

Browse files
camilamacedo86tmshort
authored andcommitted
UPSTREAM: <carry>: Skip incompatible operator test when Boxcutter uses ClusterObjectSet
The upstream rename of ClusterExtensionRevision to ClusterObjectSet (operator-framework/operator-controller#2589) breaks the incompatible operator detection in cluster-olm-operator. The cluster-olm-operator binary still reads ClusterExtensionRevision resources to find operators with olm.maxOpenShiftVersion, so after the rename it never detects incompatible operators and InstalledOLMOperatorsUpgradeable stays True. Skip this test when NewOLMBoxCutterRuntime feature gate is enabled until cluster-olm-operator is updated to read ClusterObjectSet. Signed-off-by: Camila Macedo <cmacedo@redhat.com> Made-with: Cursor
1 parent 01584e3 commit 5423a55

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

openshift/tests-extension/test/olmv1-incompatible.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
. "github.com/onsi/gomega"
1010

1111
configv1 "github.com/openshift/api/config/v1"
12+
"github.com/openshift/api/features"
1213
operatorv1 "github.com/openshift/api/operator/v1"
1314
"github.com/openshift/origin/test/extended/util/image"
1415
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -50,6 +51,13 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLM] OLMv1 operator installation
5051
if !env.Get().IsOpenShift {
5152
Skip("Requires OCP APIs: not OpenShift")
5253
}
54+
// TODO(OPRUN-4518): Re-enable once cluster-olm-operator is updated to read ClusterObjectSet
55+
// instead of ClusterExtensionRevision. The upstream rename (operator-framework/operator-controller#2589)
56+
// changed the CRD kind, but cluster-olm-operator still looks for ClusterExtensionRevision resources
57+
// to detect incompatible operators via olm.maxOpenShiftVersion.
58+
if helpers.IsFeatureGateEnabled(features.FeatureGateNewOLMBoxCutterRuntime) {
59+
Skip("Skipping: cluster-olm-operator does not yet support ClusterObjectSet (renamed from ClusterExtensionRevision)")
60+
}
5361

5462
By("waiting for InstalledOLMOperatorUpgradable to be true")
5563
waitForOlmUpgradeStatus(ctx, operatorv1.ConditionTrue, "")

0 commit comments

Comments
 (0)