mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 11:18:16 +00:00
In the original version of "MinimizeIPTablesRestore", we skipped the bottom half of the sync loop when we weren't re-syncing a service, so certain things that couldn't be skipped had to be done in the top half. But the code was later changed to always run through the whole loop body (just not necessarily writing out rules in the bottom half), so we can reorganize things now to put some related bits of code back together. (In particular, this also resolves the fact that we were accidentally adding the endpoint chains to activeNATChains twice.) Also change activeNATChains to be a proper generic Set type.