Skip to content

Commit

Permalink
Merge pull request #107 from loxilb-io/gh-105
Browse files Browse the repository at this point in the history
gh-105: probetimeo/retry count annotation on LB creation
  • Loading branch information
TrekkieCoder authored Feb 24, 2024
2 parents 2a2c734 + 64cbcbf commit 168bce3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/agent/manager/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,24 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {
klog.Infof("%s: ProbeResp update", cacheKey)
}

if probeTimeout != m.lbCache[cacheKey].ProbeTimeo {
m.lbCache[cacheKey].ProbeTimeo = probeTimeout
update = true
if added {
needDelete = true
}
klog.Infof("%s: ProbeTimeo update", cacheKey)
}

if probeRetries != m.lbCache[cacheKey].ProbeRetries {
m.lbCache[cacheKey].ProbeRetries = probeRetries
update = true
if added {
needDelete = true
}
klog.Infof("%s: ProbeRetries update", cacheKey)
}

// If the user specifies a secondary IP in the annotation, update the existing secondary IP.
if len(secIPs) > 0 {
if !added {
Expand Down

0 comments on commit 168bce3

Please sign in to comment.