From 0d0a3e1ab01805389c9f5e1bf371c81f379cc8e6 Mon Sep 17 00:00:00 2001 From: wangke19 Date: Fri, 26 Sep 2025 20:17:32 +0800 Subject: [PATCH] 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. --- .../disruptioninclusterapiserver/monitortest.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/monitortests/kubeapiserver/disruptioninclusterapiserver/monitortest.go b/pkg/monitortests/kubeapiserver/disruptioninclusterapiserver/monitortest.go index 10292da5cb30..ba1447a33bc2 100644 --- a/pkg/monitortests/kubeapiserver/disruptioninclusterapiserver/monitortest.go +++ b/pkg/monitortests/kubeapiserver/disruptioninclusterapiserver/monitortest.go @@ -114,6 +114,11 @@ func (i *InvariantInClusterDisruption) createDeploymentAndWaitToRollout(ctx cont } func (i *InvariantInClusterDisruption) createInternalLBDeployment(ctx context.Context, apiIntHost string) error { + // Don't start internal LB deployment on hypershift + if i.controlPlaneNodes == 0 { + return nil + } + deploymentObj := resourceread.ReadDeploymentV1OrDie(internalLBDeploymentYaml) deploymentObj.SetNamespace(i.namespaceName) deploymentObj.Spec.Template.Spec.Containers[0].Env[0].Value = apiIntHost