From dd8868bbb29a5b451edced062e008e1e33978a49 Mon Sep 17 00:00:00 2001 From: John Hixson Date: Thu, 30 Jan 2025 15:34:29 -0800 Subject: [PATCH] pkg/infrastructure/network: update NumberOfProbes to ProbeThreshold NumberOfProbes is being retired. ProbeThreshold is taking its place. https://learn.microsoft.com/en-us/answers/questions/2104921/action-required-end-of-support-for-microsoft-azure https://issues.redhat.com/browse/OCPBUGS-42871 --- pkg/infrastructure/azure/network.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/infrastructure/azure/network.go b/pkg/infrastructure/azure/network.go index c7ab4c86cb..2249d6a7ee 100644 --- a/pkg/infrastructure/azure/network.go +++ b/pkg/infrastructure/azure/network.go @@ -130,7 +130,7 @@ func createAPILoadBalancer(ctx context.Context, pip *armnetwork.PublicIPAddress, Protocol: to.Ptr(armnetwork.ProbeProtocolHTTPS), Port: to.Ptr[int32](6443), IntervalInSeconds: to.Ptr[int32](5), - NumberOfProbes: to.Ptr[int32](2), + ProbeThreshold: to.Ptr[int32](2), RequestPath: to.Ptr("/readyz"), }, }, @@ -218,7 +218,7 @@ func updateOutboundLoadBalancerToAPILoadBalancer(ctx context.Context, pip *armne Protocol: to.Ptr(armnetwork.ProbeProtocolHTTPS), Port: to.Ptr[int32](6443), IntervalInSeconds: to.Ptr[int32](5), - NumberOfProbes: to.Ptr[int32](2), + ProbeThreshold: to.Ptr[int32](2), RequestPath: to.Ptr("/readyz"), }, }, @@ -277,7 +277,7 @@ func updateInternalLoadBalancer(ctx context.Context, in *lbInput) (*armnetwork.L Protocol: to.Ptr(armnetwork.ProbeProtocolHTTPS), Port: to.Ptr[int32](22623), IntervalInSeconds: to.Ptr[int32](5), - NumberOfProbes: to.Ptr[int32](2), + ProbeThreshold: to.Ptr[int32](2), RequestPath: to.Ptr("/healthz"), }, }