@@ -240,11 +240,11 @@ func newDefaultNodeOutboundLB() armnetwork.LoadBalancer {
240
240
}
241
241
}
242
242
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 {
244
244
var subnet * armnetwork.Subnet
245
245
var backendAddressPoolProps * armnetwork.BackendAddressPoolPropertiesFormat
246
246
enableFloatingIP := ptr .To (false )
247
- numProbes := ptr.To [int32 ](4 )
247
+ probeThreshold := ptr.To [int32 ](1 )
248
248
idleTimeout := ptr.To [int32 ](4 )
249
249
250
250
if verifyFrontendIP {
@@ -260,8 +260,8 @@ func newSamplePublicAPIServerLB(verifyFrontendIP bool, verifyBackendAddressPools
260
260
if verifyLBRules {
261
261
enableFloatingIP = ptr .To (true )
262
262
}
263
- if verifyProbes {
264
- numProbes = ptr.To [int32 ](999 )
263
+ if verifyThreshold {
264
+ probeThreshold = ptr.To [int32 ](999 )
265
265
}
266
266
if verifyOutboundRules {
267
267
idleTimeout = ptr.To [int32 ](1000 )
@@ -321,7 +321,7 @@ func newSamplePublicAPIServerLB(verifyFrontendIP bool, verifyBackendAddressPools
321
321
Port : ptr.To [int32 ](6443 ),
322
322
RequestPath : ptr .To (httpsProbeRequestPath ),
323
323
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
325
325
},
326
326
},
327
327
},
@@ -408,7 +408,7 @@ func newDefaultInternalAPIServerLB() armnetwork.LoadBalancer {
408
408
Port : ptr.To [int32 ](6443 ),
409
409
RequestPath : ptr .To (httpsProbeRequestPath ),
410
410
IntervalInSeconds : ptr.To [int32 ](15 ),
411
- NumberOfProbes : ptr.To [int32 ](4 ),
411
+ ProbeThreshold : ptr.To [int32 ](1 ),
412
412
},
413
413
},
414
414
},
0 commit comments