@@ -208,11 +208,11 @@ func newDefaultNodeOutboundLB() armnetwork.LoadBalancer {
208
208
}
209
209
}
210
210
211
- func newSamplePublicAPIServerLB (verifyFrontendIP bool , verifyBackendAddressPools bool , verifyLBRules bool , verifyProbes bool , verifyOutboundRules bool ) armnetwork.LoadBalancer {
211
+ func newSamplePublicAPIServerLB (verifyFrontendIP bool , verifyBackendAddressPools bool , verifyLBRules bool , verifyThreshold bool , verifyOutboundRules bool ) armnetwork.LoadBalancer {
212
212
var subnet * armnetwork.Subnet
213
213
var backendAddressPoolProps * armnetwork.BackendAddressPoolPropertiesFormat
214
214
enableFloatingIP := ptr .To (false )
215
- numProbes := ptr.To [int32 ](4 )
215
+ probeThreshold := ptr.To [int32 ](4 )
216
216
idleTimeout := ptr.To [int32 ](4 )
217
217
218
218
if verifyFrontendIP {
@@ -228,8 +228,8 @@ func newSamplePublicAPIServerLB(verifyFrontendIP bool, verifyBackendAddressPools
228
228
if verifyLBRules {
229
229
enableFloatingIP = ptr .To (true )
230
230
}
231
- if verifyProbes {
232
- numProbes = ptr.To [int32 ](999 )
231
+ if verifyThreshold {
232
+ probeThreshold = ptr.To [int32 ](999 )
233
233
}
234
234
if verifyOutboundRules {
235
235
idleTimeout = ptr.To [int32 ](1000 )
@@ -289,7 +289,7 @@ func newSamplePublicAPIServerLB(verifyFrontendIP bool, verifyBackendAddressPools
289
289
Port : ptr.To [int32 ](6443 ),
290
290
RequestPath : ptr .To (httpsProbeRequestPath ),
291
291
IntervalInSeconds : ptr.To [int32 ](15 ),
292
- NumberOfProbes : numProbes , // Add to verify that Probes aren't overwritten on update
292
+ ProbeThreshold : probeThreshold , // Add to verify that Probes aren't overwritten on update
293
293
},
294
294
},
295
295
},
@@ -370,7 +370,7 @@ func newDefaultInternalAPIServerLB() armnetwork.LoadBalancer {
370
370
Port : ptr.To [int32 ](6443 ),
371
371
RequestPath : ptr .To (httpsProbeRequestPath ),
372
372
IntervalInSeconds : ptr.To [int32 ](15 ),
373
- NumberOfProbes : ptr.To [int32 ](4 ),
373
+ ProbeThreshold : ptr.To [int32 ](1 ),
374
374
},
375
375
},
376
376
},
0 commit comments