From ef83ec275363974f2afaa6b2fd7f42038828c71c Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Fri, 16 Feb 2024 18:20:50 +0000 Subject: [PATCH] don't use leader elect on ccm integration tests Change-Id: Ic1d0ff73d7913f23ed577a121b0045a1c33b9e78 --- staging/src/k8s.io/cloud-provider/app/testing/testserver.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/staging/src/k8s.io/cloud-provider/app/testing/testserver.go b/staging/src/k8s.io/cloud-provider/app/testing/testserver.go index e998b4be63d..6fe7ce705ca 100644 --- a/staging/src/k8s.io/cloud-provider/app/testing/testserver.go +++ b/staging/src/k8s.io/cloud-provider/app/testing/testserver.go @@ -109,6 +109,8 @@ func StartTestServer(ctx context.Context, customFlags []string) (result TestServ return TestServer{}, err } + s.Generic.LeaderElection.LeaderElect = false + cloudInitializer := func(config *config.CompletedConfig) cloudprovider.Interface { capturedConfig = *config // send signal to indicate the capturedConfig has been properly set