Skip to content

Commit 5528069

Browse files
committed
fix(disruption): Skip internal LB monitor on Hypershift
The internal load balancer monitor is not applicable to Hypershift clusters and causes test failures. This change skips the deployment of the internal LB monitor on Hypershift.
1 parent da8a7f3 commit 5528069

File tree

1 file changed

+5
-0
lines changed
  • pkg/monitortests/kubeapiserver/disruptioninclusterapiserver

1 file changed

+5
-0
lines changed

pkg/monitortests/kubeapiserver/disruptioninclusterapiserver/monitortest.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ func (i *InvariantInClusterDisruption) createDeploymentAndWaitToRollout(ctx cont
114114
}
115115

116116
func (i *InvariantInClusterDisruption) createInternalLBDeployment(ctx context.Context, apiIntHost string) error {
117+
// Don't start internal LB deployment on hypershift
118+
if i.controlPlaneNodes == 0 {
119+
return nil
120+
}
121+
117122
deploymentObj := resourceread.ReadDeploymentV1OrDie(internalLBDeploymentYaml)
118123
deploymentObj.SetNamespace(i.namespaceName)
119124
deploymentObj.Spec.Template.Spec.Containers[0].Env[0].Value = apiIntHost

0 commit comments

Comments
 (0)