JunYang
1706de24d2
use klog.InfoS instead of klog.V(0).Info and log structured(registry part)
2022-09-22 14:59:43 +08:00
JunYang
2db4dea565
use klog.InfoS instead of klog.V(0).InfoS
2022-08-25 18:46:34 +08:00
Antonio Ojea
5ec9d4a530
doc services healthcheckNodePort is inmutable
2022-08-05 11:51:50 +02:00
Tim Hockin
55232e2ef7
Rename IPFamilyPolicyType => IPFamilyPolicy
2022-07-06 15:42:26 -07:00
Antonio Ojea
975a678ecf
services strategy no longer depends on IPFamilies
...
since the refactor on the Service API registry, the strategy for
service no longer needs to keep information about the cluster
configuration and its ipFamilies.
2022-06-10 11:06:02 +02:00
Wojciech Tyczyński
1b72a0f5a7
Clean storage shutdown for allocators
2022-05-06 12:01:06 +02:00
Wojciech Tyczyński
80060a502c
Implement Destroy() method for all registries
2022-04-19 15:59:13 +02:00
Kubernetes Prow Robot
9fbe66a486
Merge pull request #103516 from ykakarap/kubectl-subresources-apiserver
...
kubectl: apiserver changes to add --subresource support
2022-03-23 13:21:32 -07:00
Yuvaraj Kakaraparthi
801c39b478
kubectl: API changes to support --subresource in kubectl
...
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Co-authored-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
Co-authored-by: Yuvaraj Kakaraparthi <kakaraparthy@vmware.com>
2022-03-23 11:19:58 +05:30
Tim Hockin
e927ce85b6
service REST: Call Decorator(old) on update path
...
This is causing a bug when upgrading from older releases to 1.23 because
of Service's maybe-too-clever default-on-read logic.
Service depends on `Decorator()` to be called upon read, to
back-populate old saved objects which do not have `.clusterIPs[]` set.
This works on read, but the cache saves the pre-decorated type (as it is
documented)
In 1.23, this code was refactored and it seems some edge-case handling
was inadvertently removed (I have not confirmed exactly what happened).
Test by aojea
2022-01-30 11:25:17 -08:00
Andrew Sy Kim
f68f478e66
core/v1: update unit tests to not expect internalTrafficPolicy when Service Type=ExternalName
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-04 14:48:04 -05:00
Andrew Sy Kim
438b90fbc4
core/v1: drop Service spec.internalTrafficPolicy on read when type is ExternalName
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-04 14:36:19 -05:00
Lars Ekman
1ef96752da
Mark ServiceLBNodePortControl as GA
2021-12-16 16:48:58 +01:00
Kubernetes Prow Robot
3128afa69a
Merge pull request #106296 from thockin/svc-logging-cleanup
...
Clean up some service logging
2021-11-10 11:51:38 -08:00
Tim Hockin
049e158a8f
Don't write fake logs to the real test log
...
This caused consternation as errors were logged but tests did not fail.
It was expected to log!
2021-11-09 22:56:34 -08:00
Tim Hockin
26db11f3dc
Clean up some service logging
...
This is a holdover from previous work. It is not complete, but it
should be incrementally better.
2021-11-09 22:46:22 -08:00
Khaled Henidak (Kal)
a53e2eaeab
move IPv6DualStack feature to stable. ( #104691 )
...
* kube-proxy
* endpoints controller
* app: kube-controller-manager
* app: cloud-controller-manager
* kubelet
* app: api-server
* node utils + registry/strategy
* api: validation (comment removal)
* api:pod strategy (util pkg)
* api: docs
* core: integration testing
* kubeadm: change feature gate to GA
* service registry and rest stack
* move feature to GA
* generated
2021-09-24 16:30:22 -07:00
Tim Hockin
52f54ce90d
Svc REST: clean up defaultOnRead to be consistent
...
Headless+selectorless -> RequireDualStack
Headless+selector -> SingleStack
Add test cases to cover this and ExternalName and dual-stack init (which
I think can never trigger, but best to be safe).
2021-09-16 11:17:45 -07:00
Tim Hockin
009aa36c89
Svc REST: Make transaction-accumulating funcs safe
...
Identified in review, these funcs are now more reslient to future
changes.
2021-09-11 11:30:02 -07:00
Tim Hockin
e594dd4281
Svc REST: Convert FIXME to TODO
2021-09-11 11:30:02 -07:00
Tim Hockin
03d11c53a8
Svc REST: Rename RESTAllocStuff
...
This was a dumb placeholder name.
2021-09-11 11:30:02 -07:00
Tim Hockin
5847426e5e
Svc REST: Use types for safer arg ordering
...
In all the places we pass (old, new) or (new, old), use wrapper-types to
make sure that we don't flip the order by accident.
2021-09-11 11:30:02 -07:00
Tim Hockin
d5143bca84
Svc REST: Rename GenericREST -> REST
...
This is consistent with every other registry. Service is no longer the
oddball.
2021-09-11 11:30:02 -07:00
Tim Hockin
fe6f278ea1
Svc REST: Move isValidAddress to storage.go
2021-09-11 11:30:02 -07:00
Tim Hockin
d7c8557281
Svc REST: Make update/releaseNodePorts methods
...
More consistent overall.
2021-09-11 11:30:02 -07:00
Tim Hockin
4c9bc5a53c
Svc REST: Move alloc code around
...
This is detrimental to future `blame` but makes it so much morereadable
I convinced myself it was worthwhile.
2021-09-11 11:30:02 -07:00
Tim Hockin
7ce34e311a
Svc REST: rename rest.go -> alloc.go
2021-09-11 11:30:02 -07:00
Tim Hockin
1ce9807de0
Svc REST: Make allocHCNP a method: more consistent
2021-09-11 11:30:02 -07:00
Tim Hockin
c94deffa48
Svc REST: rename allocateHealthCheckNodePort
2021-09-11 11:30:02 -07:00
Tim Hockin
6b06b9bfd3
Svc REST: rename healthCheckNodePortUpdate
2021-09-11 11:30:02 -07:00
Tim Hockin
5dfcb905d1
Svc REST: rename handleClusterIPsForUpdatedService
2021-09-11 11:30:02 -07:00
Tim Hockin
9c622230fc
Svc REST: rename releaseServiceClusterIPs
2021-09-11 11:30:02 -07:00
Tim Hockin
4fb338b279
Svc REST: rename releaseServiceClusterIP
2021-09-11 11:30:02 -07:00
Tim Hockin
2a98ec667e
Svc REST: rename allocServiceClusterIPs
2021-09-11 11:30:02 -07:00
Tim Hockin
b9f1f4712a
Svc REST: rename allocServiceClusterIP
2021-09-11 11:30:02 -07:00
Tim Hockin
1b79bbc9f4
Svc REST: rename releaseClusterIPs -> releaseIPs
2021-09-11 11:30:01 -07:00
Tim Hockin
8e330eb611
Svc REST: rename allocClusterIPs -> allocIPs
2021-09-11 11:30:01 -07:00
Tim Hockin
7d9357b181
Svc REST: rename allocUpdateServiceNodePortsNew
2021-09-11 11:30:01 -07:00
Tim Hockin
bb815e6687
Svc REST: rename allocUpdateServiceClusterIPsNew
2021-09-11 11:30:01 -07:00
Tim Hockin
3b971b137c
Svc REST: rename allocServiceNodePortsNew
2021-09-11 11:30:01 -07:00
Tim Hockin
f94782b4f5
Svc REST: rename allocServiceClusterIPsNew
2021-09-11 11:30:01 -07:00
Tim Hockin
8f5189a49f
Svc REST: Move tests and scaffolding around
...
No code edits. Just a little whitespace, adding comments, and
re-ordering functions.
2021-09-11 11:30:01 -07:00
Tim Hockin
017a430dcd
Svc REST: Move patchAllocatedValues to storage pkg
...
All the meaningful callers of it are in that pkg anyway. Removes 1
FIXME.
2021-09-11 11:30:01 -07:00
Tim Hockin
4ff4160e34
Svc REST: Move normalizeClusterIPs to storage pkg
...
All the meaningful callers of it are in that pkg anyway. Removes some
FIXMEs.
2021-09-11 11:30:01 -07:00
Tim Hockin
4718a0f214
DeepCopy() input objects in Service REST test
...
Since the PR to do this deeper in the stack was declined, we'll do it
ourselves. This ensures that we don't accidentally mutate the input and
then compare that mutated form to the result (which caused previous test
failures).
2021-09-11 11:30:01 -07:00
Tim Hockin
4ac7c73b2e
Svc REST: Remove old rest_test
...
All the tests have been ported to storage_test.go
2021-09-11 11:30:01 -07:00
Tim Hockin
b6da6c9c0f
Svc REST: Add InternalTrafficPolicy tests
...
Remove older form.
2021-09-11 11:30:01 -07:00
Tim Hockin
c71467def0
Svc REST: Remove overlapping rest_tests
...
Most are moved to storage_test
2021-09-11 11:30:01 -07:00
Tim Hockin
12ac38f661
Svc REST: Beef up ports test, remove old form
2021-09-11 11:30:01 -07:00
Tim Hockin
652dc8787c
Svc REST: Use "prove" helpers in other tests
2021-09-11 11:30:01 -07:00