Skip to content

Commit 24857d9

Browse files
committed
Skip Proxy update test on HyperShift cluster
Signed-off-by: chiragkyal <ckyal@redhat.com>
1 parent ef7e84c commit 24857d9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/e2e/trustmanager_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
. "github.com/onsi/ginkgo/v2"
1313
. "github.com/onsi/gomega"
1414

15+
configopenshiftv1 "github.com/openshift/api/config/v1"
1516
"github.com/openshift/cert-manager-operator/api/operator/v1alpha1"
1617
testutils "github.com/openshift/cert-manager-operator/pkg/controller/istiocsr"
1718
operatorclientv1alpha1 "github.com/openshift/cert-manager-operator/pkg/operator/clientset/versioned/typed/operator/v1alpha1"
@@ -828,6 +829,13 @@ var _ = Describe("TrustManager", Ordered, Label("Platform:Generic", "Feature:Tru
828829
const openshiftConfigNS = "openshift-config"
829830
const userCABundleName = "user-ca-bundle"
830831

832+
By("checking if cluster has external control plane (HyperShift) — Proxy is immutable there")
833+
infra, err := configClient.Infrastructures().Get(ctx, "cluster", metav1.GetOptions{})
834+
Expect(err).ShouldNot(HaveOccurred())
835+
if infra.Status.ControlPlaneTopology == configopenshiftv1.ExternalTopologyMode {
836+
Skip("Proxy/cluster is immutable on HostedCluster (external control plane)")
837+
}
838+
831839
createTrustManager(ctx, newTrustManagerCR().WithDefaultCAPackage(v1alpha1.DefaultCAPackagePolicyEnabled))
832840

833841
// --- Capture baseline state ---

0 commit comments

Comments
 (0)