Merge pull request #50747 from m1093782566/proxy-util
Automatic merge from submit-queue (batch tested with PRs 50281, 50747, 50347, 50834, 50852)
[proxy] Move IsLocalIP() and ShouldSkipService() to pkg/proxy/util
**What this PR does / why we need it**:
Move function `IsLocalIP()` and `ShouldSkipService()` to pkg/proxy/util package so that they can be consumed among different proxiers.
Besides, add some UTs for `ShouldSkipService()`.
**Which issue this PR fixes**: fixes #50744
**Special notes for your reviewer**:
**Release note**:
```release-note
NONE
```
Showing
pkg/proxy/util/utils.go
0 → 100644
pkg/proxy/util/utils_test.go
0 → 100644
Please
register
or
sign in
to comment