Quan Tian
0fb1f59a88
Improve service unit test failure report
...
Mark the helper functions with t.Helper() so that if t.Errorf() in these
functions gets called, it will report that the failure occurred on the
line number of the caller of the helper, rather than the line number of
the helper itself, which makes it hard to identify which case causes the
failure.
Signed-off-by: Quan Tian <qtian@vmware.com>
2023-09-01 23:18:45 +08:00
Quan Tian
2b69daa960
Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs
...
When defining a ClusterIP Service, we can specify externalIP, and the
traffic policy of externalIP is subject to externalTrafficPolicy.
However, the policy can't be set when type is not NodePort or
LoadBalancer, and will default to Cluster when kube-proxy processes the
Service.
This commit updates the defaulting and validation of Service to allow
specifying ExternalTrafficPolicy for ClusterIP Services with
ExternalIPs.
Signed-off-by: Quan Tian <qtian@vmware.com>
2023-08-30 23:56:47 +08:00
Tim Hockin
d0e2b06850
ServiceExternalTrafficPolicyType: s/Type//
...
Rename ServiceExternalTrafficPolicyType => ServiceExternalTrafficPolicy
2022-12-11 13:48:27 -08:00
0xff-dev
729bd22e24
clean up unused function 'GetServiceHealthCheckPathPort'
2022-07-06 16:15:14 +08:00
Tim Hockin
30c1523708
kube-proxy: Renames for readability
2022-03-30 09:55:32 -07:00
Fangyuan Li
7ed2f1d94d
Implements Service Internal Traffic Policy
...
1. Add API definitions;
2. Add feature gate and drops the field when feature gate is not on;
3. Set default values for the field;
4. Add API Validation
5. add kube-proxy iptables and ipvs implementations
6. add tests
2021-03-07 16:52:59 -08:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
Àbéjídé Àyodélé
04be2c4162
Clean up pkg/api.
...
These are based on recommendation from
[staticcheck](http://staticcheck.io/ ).
2019-05-09 15:23:41 +00:00
Ashish Ranjan
7be223e798
Refactor to use k8s.io/utils/net/ package instead of kubernetes/pkg/util/net/sets
...
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com>
2019-02-04 10:34:53 +05:30
Christoph Blecker
97b2992dc1
Update gofmt for go1.11
2018-10-05 12:59:38 -07:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Jeff Grafton
ef56a8d6bb
Autogenerated: hack/update-bazel.sh
2018-02-16 13:43:01 -08:00
Jeff Grafton
efee0704c6
Autogenerate BUILD files
2017-12-23 13:12:11 -08:00
Jeff Grafton
aee5f457db
update BUILD files
2017-10-15 18:18:13 -07:00
Jeff Grafton
a7f49c906d
Use buildozer to delete licenses() rules except under third_party/
2017-08-11 09:32:39 -07:00
Jeff Grafton
33276f06be
Use buildozer to remove deprecated automanaged tags
2017-08-11 09:31:50 -07:00
xiangpengzhao
ea1a577358
Remove some helpers associated with ESIPP.
2017-08-09 14:25:08 +08:00
xiangpengzhao
ebe21ee4c1
Remove deprecated ESIPP beta annotations
2017-08-05 15:00:58 +08:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Tim Hockin
fc34a9d6ba
'Global' -> 'Cluster' for traffic policy
2017-06-01 16:17:38 -07:00
Zihong Zheng
a28a22df11
Move defaulting logic for ExternalTrafficPolicy into defaults.go
2017-05-17 12:47:01 -07:00
Zihong Zheng
5992425588
Autogenerated files
2017-05-16 21:55:51 -07:00
Zihong Zheng
c0920f75cf
Move API annotations into annotation_key_constants and remove api/annotations package
2017-05-16 21:55:23 -07:00
Zihong Zheng
12b6c2b879
Autogenerated files
2017-05-12 10:59:00 -07:00
Zihong Zheng
12277a0ad4
Update ESIPP validation and service registry unit tests
2017-05-12 10:59:00 -07:00
Zihong Zheng
79ca71708a
Adjust ESIPP validation and service registry codes
2017-05-12 10:58:59 -07:00
Zihong Zheng
73fa1ddcac
Define ESIPP GA fields and deprecate alpha annotations
2017-05-12 10:58:59 -07:00
Zihong Zheng
1cac5db856
Fix onlylocal endpoint's healthcheck nodeport logic
2017-05-02 09:47:27 -07:00
Zihong Zheng
ae93b0da15
Refine NeedsHealthCheck logic
2017-04-17 14:26:02 -07:00
Zihong Zheng
cb53dbbfae
Move healthcheck util functions to util.go
2017-04-17 13:13:59 -07:00
Mike Danese
a05c3c0efd
autogenerated
2017-04-14 10:40:57 -07:00
Jeff Grafton
20d221f75c
Enable auto-generating sources rules
2017-01-05 14:14:13 -08:00
Mike Danese
161c391f44
autogenerated
2016-12-29 13:04:10 -08:00
Mike Danese
c87de85347
autoupdate BUILD files
2016-12-12 13:30:07 -08:00
Chao Xu
bcc783c594
run hack/update-all.sh
2016-11-23 15:53:09 -08:00
Chao Xu
bff3cb4df6
pkg/api, pkg/apis: Copied constants to versioned types.go, copied several util funcs to versioned
2016-11-23 15:53:09 -08:00