Skip to content

Commit

Permalink
Merge pull request #28562 from csrwng/fix_ccm_testforhcp
Browse files Browse the repository at this point in the history
NO-JIRA: Skip external cloud provider test for HyperShift clusters
  • Loading branch information
openshift-merge-bot[bot] committed Jan 30, 2024
2 parents 861a982 + 9c06725 commit 724daa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/extended/cloud_controller_manager/ccm.go
Expand Up @@ -30,6 +30,10 @@ var _ = g.Describe("[sig-cloud-provider][Feature:OpenShiftCloudControllerManager
infra, err := oc.AdminConfigClient().ConfigV1().Infrastructures().Get(context.Background(), "cluster", metav1.GetOptions{})
o.Expect(err).NotTo(o.HaveOccurred())

if infra.Status.ControlPlaneTopology == configv1.ExternalTopologyMode {
g.Skip("Control plane is external")
}

if !isPlatformExternal(infra.Status.PlatformStatus.Type) {
g.Skip("Platform does not use external cloud provider")
}
Expand Down

0 comments on commit 724daa8

Please sign in to comment.