Dan Winship
80e9d948e3
Add more Endpoints vs EndpointsSlices reconciler tests
2022-05-27 08:46:24 -04:00
Dan Winship
07de59ab60
Remove unused endpointSlicesEnabled fields
2022-05-27 08:46:23 -04:00
Dan Winship
91338c13df
Use EndpointSlices in all reconciler unit tests
...
EndpointSlice is always enabled now, so make it non-optional in the
EndpointsAdapter, make all of the test cases pass an EndpointSlice
client, and remove the "EndpointSlices disabled"-specific tests.
By changing makeEndpointsArray() to return both an Endpoints and an
EndpointsSlice, the "initialObjects" and "expectCreate"/"expectUpdate"
fields of (almost) all of the existing unit tests are automatically
switched to be EndpointSlice-aware; instead of having an initial state
with just Endpoints (or nothing), and testing that just the Endpoints
is created/updated correctly, they now have an initial state with both
Endpoints and EndpointSlice (or nothing), and test that both objects
are created/updated correctly.
The handful of existing test cases that used inconsistent Endpoints
and EndpointSlice state have been modified to create the objects
separately.
2022-05-27 08:46:23 -04:00
Dan Winship
f543e7434a
Improve reconciler test result checking
...
Consistently verify creates/updates based on the fake client's action
tracking, not based on the return values of the reconciler functions.
(This will also let us check that both Endpoints and EndpointSlices
were created/updated correctly.)
2022-05-27 08:46:23 -04:00
Dan Winship
4033de2034
Simplify endpoint creation in reconciler unit tests
...
Also make the expectCreate / expectUpdate fields into arrays while
we're rewriting their values anyway, to avoid additional churn in the
next commit.
2022-05-27 08:46:23 -04:00
Dan Winship
b07fe3a974
Simplify reconciler unit test setup
...
Pass initial state objects to fake.NewSimpleClientSet() rather than
calling Create() by hand.
(This will make it easier to have an initial state that is a mix of
Endpoints and EndpointSlices later on.)
2022-05-27 08:46:23 -04:00
Dan Winship
007ca4f69d
Use t.Run() consistently in reconciler unit tests
2022-05-27 08:46:23 -04:00
Kubernetes Prow Robot
ad06854e5e
Merge pull request #110228 from mysunshine92/HPA-log-optimization
...
Error message optimization for podautoscaler controller
2022-05-27 05:13:18 -07:00
Kubernetes Prow Robot
40543b77b5
Merge pull request #110183 from lokichoggio/doc
...
complete doc
2022-05-27 05:13:07 -07:00
Kubernetes Prow Robot
61b983a66b
Merge pull request #110229 from wojtek-t/fix_leaking_goroutines_1
...
Fix leaking goroutine in multiple integration tests by migrating to common StartTestServer utility
2022-05-27 00:41:19 -07:00
Kubernetes Prow Robot
cb92b2c119
Merge pull request #110203 from wppzxc/add-testcases
...
Fix: Add test cases for method IsZeroCIDR() in pkg/proxy/util/utils_test.go
2022-05-27 00:41:08 -07:00
Kubernetes Prow Robot
32c3fb3b78
Merge pull request #110227 from aojea/cleanup
...
Cleanup feature gate check for SelectorIndex
2022-05-26 14:09:55 -07:00
Kubernetes Prow Robot
771c62d802
Merge pull request #110200 from lajay-lawrence/b227506769
...
Adds Verification Commands.
2022-05-26 13:01:55 -07:00
lajay-lawrence
9a035e3287
Updated verification commands
2022-05-26 18:53:26 +00:00
Kubernetes Prow Robot
908a830c8a
Merge pull request #110234 from danwinship/endpoint-reconciler-org
...
Fix up some kubernetes service reconciling code organization.
2022-05-26 11:51:01 -07:00
Dan Winship
217f720c72
Fix up some kubernetes service reconciling code organization.
...
When the endpoint reconcilers got split out of pkg/controlplane,
GetMasterServiceUpdateIfNeeded() got moved to
pkg/controlplane/reconcilers, even though it needs to be kept in sync
with CreateOrUpdateMasterServiceIfNeeded() which stayed in
pkg/controlplane. (And everything else in pkg/controlplane/reconcilers
is about the Endpoints not the Service anyway.) So move it back.
On the flip side, the implementation of masterCountEndpointReconciler
got moved to pkg/controlplane/reconcilers, but its unit tests didn't.
So belatedly fix that.
2022-05-26 13:39:54 -04:00
Wojciech Tyczyński
8ca1ec2b60
Clean shutdown of cronjob integration tests
2022-05-26 19:29:34 +02:00
Kubernetes Prow Robot
ee0a070865
Merge pull request #110082 from twilight0620/addTest2
...
add test case TestValidateServiceNodePort for validateServiceNodePort method
2022-05-26 08:45:35 -07:00
Kubernetes Prow Robot
4a2391caf3
Merge pull request #108259 from carlosdamazio/refactor/roundrobin
...
pkg/proxy/userspace/roundrobin: Make `lb.services` nil check standardized
2022-05-26 08:45:23 -07:00
wangyamei
187dcb5a59
Error message optimization for podautoscaler controller
2022-05-26 23:40:34 +08:00
Antonio Ojea
209fb99f28
remove SelectorIndex field
2022-05-26 17:27:45 +02:00
Wojciech Tyczyński
2893ad3e5b
Clean shutdown of evictions integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
c0149f78d7
Clean shutdown of certificates integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
2583942eb7
Clean shutdown of daemonset integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
5fc1c39bd4
Clean shutdown of configmap integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
b8d28ef2b6
Clean shutdown of storageclasses integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
fbd2184583
Clean shutdown of namespace integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
7b44e64dd8
Clean shutdown of secret integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
492bad026c
Clean shutdown of endpointslice integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
7add7ba9e5
Clean shutdown of endpoints integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
7ac6638f92
Clean shutdown of replicationcontroller integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
33831c9fd3
Clean shutdown of replicaset integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
368802dd7e
Clean shutdown of deployment integration tests
2022-05-26 17:19:36 +02:00
Wojciech Tyczyński
79289294b2
Clean shutdown of pods integration tests
2022-05-26 17:18:26 +02:00
Kubernetes Prow Robot
fa7309438f
Merge pull request #110223 from RaunakShah/snapv1beta1
...
Add v1beta1 snapshot CRDs to cluster addons
2022-05-26 07:37:34 -07:00
Kubernetes Prow Robot
029b1bb8da
Merge pull request #110207 from wojtek-t/clean_shutdown_managers
...
Clean shutdown of kcm, ccm and scheduler
2022-05-26 07:37:23 -07:00
Wojciech Tyczyński
054c489d00
Clean shutdown of metrics integration tests
2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
284509f36e
Clean shutdown of ttlcontroller integration tests
2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
c6e3bd732e
Clean shutdown of persistentvolume integration tests
2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
f68e72a360
Clean shutdown of volume integration tests
2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
3b98f59e16
Clean shutdown of service integration tests
2022-05-26 16:20:56 +02:00
Wojciech Tyczyński
6ae4bbbfc2
Add namespace utility test functions
2022-05-26 16:20:56 +02:00
Kubernetes Prow Robot
f9f9e7177a
Merge pull request #84145 from bells17/fix-typo
...
Fix typo: type -> eventtype
2022-05-26 05:13:22 -07:00
Antonio Ojea
410aaaa202
cleanup: remove check for GA feature gate
2022-05-26 13:26:49 +02:00
Wojciech Tyczyński
fe3616cafb
Clean shutdown of kcm, ccm and scheduler
2022-05-26 12:36:59 +02:00
Wojciech Tyczyński
55130ae2ab
Make contextForChannel public
2022-05-26 12:35:58 +02:00
Kubernetes Prow Robot
eb37a5d9c1
Merge pull request #110000 from wojtek-t/fix_shutdown_sequence
...
Fix apiserver shutdown in integration tests
2022-05-26 02:53:22 -07:00
Wojciech Tyczyński
6f706775bc
Clean shutdown of test apiserver
2022-05-26 10:42:48 +02:00
Raunak Pradip Shah
39cf002690
Add v1beta1 snapshot CRDs to cluster addons
2022-05-26 12:54:12 +05:30
Kubernetes Release Robot
9ad41812e5
CHANGELOG: Update directory for v1.24.1 release
2022-05-26 03:31:02 +00:00