• Kubernetes Submit Queue's avatar
    Merge pull request #65425 from islinwb/ipvs_cleanup_rules · fce58d25
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 66136, 64999, 65425, 66120, 66074). 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>.
    
    Not step into ipvs.CleanupLeftovers() if canUseIPVS's false
    
    **What this PR does / why we need it**:
    Earlier we decide whether we should clean up the left-over ipvs rules inside `ipvs.CleanupLeftovers()`, therefore we call function  `ipvs.CanUseIPVSProxier()` two times (and `GetModules()` two times).  Actually no need to step into `ipvs.CleanupLeftovers()` if `canUseIPVS` is false.
    
    **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 #
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    fce58d25
Name
Last commit
Last update
..
app Loading commit data...
BUILD Loading commit data...
proxy.go Loading commit data...