Skip to content

Commit 3d6690a

Browse files
authored
Merge pull request #5562 from jhixson74/main-probe-threshold
Remove deprecated field NumberOfProbes
2 parents 17a7399 + 6545032 commit 3d6690a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

azure/services/loadbalancers/spec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func getProbes(lbSpec LBSpec) []*armnetwork.Probe {
289289
Port: ptr.To[int32](lbSpec.APIServerPort),
290290
RequestPath: ptr.To(httpsProbeRequestPath),
291291
IntervalInSeconds: ptr.To[int32](15),
292-
NumberOfProbes: ptr.To[int32](4),
292+
ProbeThreshold: ptr.To[int32](1),
293293
},
294294
},
295295
}

azure/services/loadbalancers/spec_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)