Commit Graph

108646 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
92263ee0dd
Merge pull request #110072 from neolit123/1.25-kubeadm-etcd-liveness-probe
kubeadm: add serializable health checks for etcd probes
2022-05-30 00:40:52 -07:00
Sascha Grunert
882c460d2a
Update cri-tools to v1.24.2
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-05-30 09:13:56 +02:00
Brian Pursley
457181fbd6 Fix e2e test failure
Remove namespace from manifest to fix the error: the namespace from
the provided object "my-ns" does not match the namespace
"kubectl-8939". You must pass '--namespace=my-ns' to perform this
operation.
2022-05-28 18:09:41 -04:00
Wojciech Tyczyński
3af4c74f37 Clean shutdown of cronjob integration tests 2022-05-28 21:36:54 +02:00
Wojciech Tyczyński
64d1b24cc8 Clean shutdown of daemonset integration tests 2022-05-28 21:31:28 +02:00
Wojciech Tyczyński
f31d0305ad Clean shutdown of defaulttolerationseconds integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
411c319db8 Clean shutdown of dualstack integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
8a959396b8 Clean shutdown of volumescheduling integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
3b61f4ac20 Clean shutdown of apply integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
5073506aa7 Clean shutdown of statefulset integration tests 2022-05-28 21:14:09 +02:00
Wojciech Tyczyński
aee829abf4 Clean shutdown of job integration tests 2022-05-28 21:14:09 +02:00
Kubernetes Prow Robot
c6970e6452
Merge pull request #110250 from wojtek-t/fix_leaking_goroutines_3
Fix leaking goroutines in scheduler integration tests
2022-05-28 05:51:02 -07:00
Kubernetes Prow Robot
4f851ebffb
Merge pull request #110145 from sxllwx/fix/audit-union-var-closures
fix audit union loop variables in closures
2022-05-28 05:50:50 -07:00
Kubernetes Prow Robot
dfefd5a698
Merge pull request #110244 from humblec/feature-gate
CSINodeExpandSecret featuregate has to be 1.25 based
2022-05-28 03:06:50 -07:00
Kubernetes Prow Robot
f3264dd0b3
Merge pull request #110031 from mk46/etcd-image-v3.5.4
etcd: Build image 3.5.4-0
2022-05-27 21:16:16 -07:00
Kubernetes Prow Robot
8b6dd065d7
Merge pull request #110255 from robscott/fix-pod-eviction-ip
Endpoints and EndpointSlices should not publish IPs for terminal pods
2022-05-27 16:24:42 -07:00
Kubernetes Prow Robot
016a7bbc0b
Merge pull request #110131 from stevekuznetsov/skuznets/stop-copying-metadata
customresource: stop shallow-copying metadata
2022-05-27 14:30:42 -07:00
Rob Scott
aa02b7a434
Updating e2e test to check EndpointSlices and Endpoints as well 2022-05-27 21:10:59 +00:00
Kubernetes Prow Robot
de449881fd
Merge pull request #109892 from jlsong01/add_annotation_comments
clarify a comment on annotation key validation
2022-05-27 11:36:41 -07:00
James Sturtevant
061b8e8049 RunAsUser causes pods to not start on Windows 2022-05-27 09:31:39 -07:00
Kubernetes Prow Robot
6c2265cdab
Merge pull request #110246 from wojtek-t/fix_leaking_goroutines_2
Fix leaking goroutines in QuotaEvaluator
2022-05-27 07:45:07 -07:00
Kubernetes Prow Robot
f161dde085
Merge pull request #109977 from JohnTitor/remove-poddelete-use
Remove the use of derecated `PodDeleteTimeout` const
2022-05-27 06:21:08 -07:00
Wojciech Tyczyński
c802118e81 Update scheduler tests 2022-05-27 14:57:21 +02:00
Dan Winship
c44f5467a2 Remove unused and un-enable-able apiserver multiple ports feature
Theoretically, the apiserver could be told to advertise additional
ports on the kubernetes service, but there was no way to enable this
functionality without forking/vendoring the apiserver code. This was
apparently added in the distant past for OpenShift to use, but it has
not been used in OpenShift since Kubernetes 1.11.
2022-05-27 08:46:44 -04:00
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
Wojciech Tyczyński
9d974e6e89 Fix leaking goroutines in QuotaEvaluator 2022-05-27 08:13:27 +02:00
Antonio Ojea
3a8edca2d8 e2e: services with evicted pods doesn't have endpoints 2022-05-27 06:43:03 +02:00
Antonio Ojea
ffdbce6291 e2e test for evicted pods 2022-05-27 06:43:03 +02:00
Antonio Ojea
aa35f6f160 endpoints controller: don't consider terminal endpoints
Terminal pods, whose phase its Failed or Succeeded, are guaranteed
to never regress and to be stopped, so their IPs never should
be published on the Endpoints.
2022-05-27 06:42:58 +02:00
Antonio Ojea
b905c2870b endpointslices: terminal pods doesn't receive enpoints 2022-05-27 06:42:52 +02:00
Antonio Ojea
d16d23e0c7 add pod util to verify pod is terminal
pods on phase succeeded or failed are guaranteed to have all containers
stopped and to not ever regress
2022-05-27 06:42:39 +02:00
Humble Chirammal
055512b5c8 CSINodeExpandSecret featuregate has to be 1.25 based
At present the CSINodeExpandSecret feature gate has been tagged with
1.24 in the source code comments incorrectly. This commit address
the same

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-05-27 10:07:55 +05:30
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