Commit c0fc7c6
BUG/MEDIUM: fix previousMapPort2Listeners never populated in resetListenerConflicts
resetListenerConflicts was resetting both mapPort2Listeners and
previousMapPort2Listeners to empty maps. As a result,
previousGatewaysWithPortConflicts() always returned an empty set, making
checkListenerConflicts unable to detect Gateways whose conflicts had been
resolved since the previous reconciliation cycle.
When a conflicting Gateway was deleted, the surviving Gateway would not be
added to the update list for reprocessing and would retain its conflict
condition in Kubernetes status indefinitely.
Fix by saving the current mapPort2Listeners into previousMapPort2Listeners
before resetting the current map, so that the previous conflict state is
correctly preserved across reconciliation cycles.1 parent 8cffc77 commit c0fc7c6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
199 | 200 | | |
200 | | - | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments