Skip to content

Commit

Permalink
[octavia-ingress-controller] Update listener timeouts (#2468)
Browse files Browse the repository at this point in the history
This commit makes sure that listener timeouts are updated when their
values are changed on the Ingress resource annotations.
  • Loading branch information
dulek authored Dec 28, 2023
1 parent 8c455f7 commit 858a2b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/ingress/controller/openstack/octavia.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,11 @@ func (os *OpenStack) EnsureListener(name string, lbID string, secretRefs []strin
} else {
if len(listenerAllowedCIDRs) > 0 && !reflect.DeepEqual(listener.AllowedCIDRs, listenerAllowedCIDRs) {
_, err := listeners.Update(os.Octavia, listener.ID, listeners.UpdateOpts{
AllowedCIDRs: &listenerAllowedCIDRs,
AllowedCIDRs: &listenerAllowedCIDRs,
TimeoutClientData: timeoutClientData,
TimeoutMemberData: timeoutMemberData,
TimeoutMemberConnect: timeoutMemberConnect,
TimeoutTCPInspect: timeoutTCPInspect,
}).Extract()
if err != nil {
return nil, fmt.Errorf("failed to update listener allowed CIDRs: %v", err)
Expand Down

0 comments on commit 858a2b0

Please sign in to comment.