Skip to content

Commit

Permalink
fix(nsc): update IPVS svc when timeout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren committed Jul 10, 2020
1 parent b6acd0a commit 97841f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/proxy/network_services_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,8 @@ func (ln *linuxNetworking) ipvsAddService(svcs []*ipvs.Service, vip net.IP, prot
var err error
for _, svc := range svcs {
if vip.Equal(svc.Address) && protocol == svc.Protocol && port == svc.Port {
if (persistent && (svc.Flags&0x0001) == 0) || (!persistent && (svc.Flags&0x0001) != 0) {
if (persistent && (svc.Flags&0x0001) == 0) || (!persistent && (svc.Flags&0x0001) != 0) ||
svc.Timeout != uint32(persistentTimeout) {
ipvsSetPersistence(svc, persistent, persistentTimeout)

if changedIpvsSchedFlags(svc, flags) {
Expand Down

0 comments on commit 97841f6

Please sign in to comment.