• Kubernetes Submit Queue's avatar
    Merge pull request #65264 from xujieasd/ipvs-bind-address · e1ed79c8
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    add cleanLegacyBindAddr
    
    **What this PR does / why we need it**:
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #65263
    
    **Special notes for your reviewer**:
    To fix the issue,   
    use `activeBindAddrs` map which represents ip address successfully bind to DefaultDummyDevice in the round of sync  
    use `currentBindAddrs` map which represents ip addresses bind to DefaultDummyDevice from the system  
    create a function `cleanLegacyBindAddr` to unbind address which is in `currentBindAddrs` map but not in `activeBindAddrs` map
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    
    /sig network
    /area kube-proxy
    e1ed79c8
Name
Last commit
Last update
..
BUILD Loading commit data...
fake.go Loading commit data...
fake_test.go Loading commit data...
util.go Loading commit data...