kubernetes/pkg/proxy
Kubernetes Submit Queue 9438e14d39
Merge pull request #52528 from m1093782566/refactor-proxy
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>.

Refactor kube-proxy service/endpoints update so that can be consumed among different proxiers

**What this PR does / why we need it**:

There are huge duplication among different proxiers.  For example, the service/endpoints list/watch part in iptables, ipvs and windows kernel mode(to be get in soon).

I think the more places this is replicated the harder it becomes to keep correct. We may need to refactor it and let different proxiers consume the same code.

**Which issue this PR fixes**: 

fixes #52464

**Special notes for your reviewer**:

* This refactor reduces **500** Lines in iptables proxy, so it will reduce **500*N**(number of proxiers) lines in total. People no need to care the service/endpoints update logic any more and can be more focus on proxy logic.

* I would like to do the following things in follow-ups:

1. rsync it to ipvs proxier

2. rsync it to winkernel proxier

**Release note**:

```release-note
Refactor kube-proxy service/endpoints update so that can be consumed among different proxiers
```
2018-02-12 23:29:50 -08:00
..
apis/kubeproxyconfig Merge pull request #55986 from xiangpengzhao/kubeproxy-fuzzer 2018-02-05 20:23:02 -08:00
config Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
healthcheck fix all the typos across the project 2018-02-11 11:04:14 +08:00
iptables Merge pull request #52528 from m1093782566/refactor-proxy 2018-02-12 23:29:50 -08:00
ipvs Merge pull request #52528 from m1093782566/refactor-proxy 2018-02-12 23:29:50 -08:00
metrics add proxy metrics in app level 2017-10-16 21:10:51 +08:00
userspace fix all the typos across the project 2018-02-11 11:04:14 +08:00
util proxy endpoints part changes 2018-02-09 17:20:47 +08:00
winkernel fix all the typos across the project 2018-02-11 11:04:14 +08:00
winuserspace fix all the typos across the project 2018-02-11 11:04:14 +08:00
BUILD update bazel BUILD 2018-02-09 17:26:22 +08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
endpoints.go proxy endpoints part changes 2018-02-09 17:20:47 +08:00
endpoints_test.go proxy endpoints part changes 2018-02-09 17:20:47 +08:00
OWNERS add m1093782566 to pkg/proxy/OWNERS 2017-10-13 11:39:25 +08:00
service.go proxy service part changes 2018-02-09 17:20:44 +08:00
service_test.go proxy service part changes 2018-02-09 17:20:44 +08:00
types.go abstract proxy servicePort and endpoints 2018-02-07 11:46:31 +08:00