k3s/pkg/proxy
Kubernetes Submit Queue 02ca5cac01
Merge pull request #53555 from leblancd/v6_del_endpoint_proxier
Automatic merge from submit-queue (batch tested with PRs 55988, 53555, 55858). 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 IPv6 and negative UT test cases for proxier's deleteEndpointConnections

This change adds IPv6 and negative UT test cases for the proxier's deleteEndpointConnections.

Changes include:
- Add IPv6 UT test cases to TestDeleteEndpointConnections.
- Add negative UT test case to TestDeleteEndpointConnections for
  handling case where no connections need clearing (benign error).
- Add negative UT test case to test unexpected error.
- Reorganize UT in TestDeleteEndpointConnections so that the fake
  command executor's command and scripted responses are generated on
  the fly based on the test case table (rather than using a fixed
  set of commands/responses that will need to be updated every time
  test cases are added/deleted).
- Create the proxier service map in real time, based on the test case
  table (rather than using a fixed service map that will need to be updated
  every time test cases are added/deleted).

fixes #53554



**What this PR does / why we need it**:
This change adds IPv6 and negative UT test cases for the proxier's
deleteEndpointConnections.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53554

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-11-18 20:31:23 -08:00
..
apis/kubeproxyconfig Merge pull request #55757 from yanxuean/remove-schema 2017-11-18 16:38:25 -08:00
config Update generated files 2017-11-09 12:14:08 +01:00
healthcheck Update generated files 2017-11-09 12:14:08 +01:00
iptables Merge pull request #53555 from leblancd/v6_del_endpoint_proxier 2017-11-18 20:31:23 -08:00
ipvs Merge pull request #53780 from m1093782566/validate-ipvs 2017-11-15 09:30:24 -08:00
metrics add proxy metrics in app level 2017-10-16 21:10:51 +08:00
userspace replace sets.List() with sets.UnsortedList() 2017-11-13 10:20:54 +08:00
util Merge pull request #53555 from leblancd/v6_del_endpoint_proxier 2017-11-18 20:31:23 -08:00
winkernel Merge pull request #53780 from m1093782566/validate-ipvs 2017-11-15 09:30:24 -08:00
winuserspace Update generated files 2017-11-09 12:14:08 +01:00
BUILD proxy: cleanup old build file 2017-11-07 16:11:37 -08:00
OWNERS add m1093782566 to pkg/proxy/OWNERS 2017-10-13 11:39:25 +08:00
doc.go
types.go kube-proxy: OnServiceUpdate takes pointers 2017-04-03 17:19:39 -07:00