@@ -240,11 +240,11 @@ func newDefaultNodeOutboundLB() armnetwork.LoadBalancer {
240240 }
241241}
242242
243- func newSamplePublicAPIServerLB (verifyFrontendIP bool , verifyBackendAddressPools bool , verifyLBRules bool , verifyProbes bool , verifyOutboundRules bool , modifications ... func (* armnetwork.LoadBalancer )) armnetwork.LoadBalancer {
243+ func newSamplePublicAPIServerLB (verifyFrontendIP bool , verifyBackendAddressPools bool , verifyLBRules bool , verifyThreshold bool , verifyOutboundRules bool , modifications ... func (* armnetwork.LoadBalancer )) armnetwork.LoadBalancer {
244244 var subnet * armnetwork.Subnet
245245 var backendAddressPoolProps * armnetwork.BackendAddressPoolPropertiesFormat
246246 enableFloatingIP := ptr .To (false )
247- numProbes := ptr.To [int32 ](4 )
247+ probeThreshold := ptr.To [int32 ](1 )
248248 idleTimeout := ptr.To [int32 ](4 )
249249
250250 if verifyFrontendIP {
@@ -260,8 +260,8 @@ func newSamplePublicAPIServerLB(verifyFrontendIP bool, verifyBackendAddressPools
260260 if verifyLBRules {
261261 enableFloatingIP = ptr .To (true )
262262 }
263- if verifyProbes {
264- numProbes = ptr.To [int32 ](999 )
263+ if verifyThreshold {
264+ probeThreshold = ptr.To [int32 ](999 )
265265 }
266266 if verifyOutboundRules {
267267 idleTimeout = ptr.To [int32 ](1000 )
@@ -321,7 +321,7 @@ func newSamplePublicAPIServerLB(verifyFrontendIP bool, verifyBackendAddressPools
321321 Port : ptr.To [int32 ](6443 ),
322322 RequestPath : ptr .To (httpsProbeRequestPath ),
323323 IntervalInSeconds : ptr.To [int32 ](15 ),
324- NumberOfProbes : numProbes , // Add to verify that Probes aren't overwritten on update
324+ ProbeThreshold : probeThreshold , // Add to verify that Probes aren't overwritten on update
325325 },
326326 },
327327 },
@@ -408,7 +408,7 @@ func newDefaultInternalAPIServerLB() armnetwork.LoadBalancer {
408408 Port : ptr.To [int32 ](6443 ),
409409 RequestPath : ptr .To (httpsProbeRequestPath ),
410410 IntervalInSeconds : ptr.To [int32 ](15 ),
411- NumberOfProbes : ptr.To [int32 ](4 ),
411+ ProbeThreshold : ptr.To [int32 ](1 ),
412412 },
413413 },
414414 },
0 commit comments