Commit Graph

122180 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
fa07055b1f
Merge pull request #123944 from ii/remove-volumeattachment-endpoints
Remove VolumeAttachment endpoints from pending_eligible_endpoints.yaml
2024-03-14 21:32:51 -07:00
Ziqi Zhao
91af1145bf fix for comments to ignore the request without request info
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2024-03-15 09:42:42 +08:00
Kubernetes Prow Robot
2502f898e7
Merge pull request #123942 from ii/promote-volume-attachment-lifecycle-test
Promote e2e test for VolumeAttachment Endpoints + 7 Endpoints
2024-03-14 18:23:47 -07:00
Stephen Heywood
80db011202 remove VolumeAttachment endpoints 2024-03-15 13:32:17 +13:00
Stephen Heywood
55302de991 Promote VolumeAttachment e2e test to Conformance 2024-03-15 10:54:25 +13:00
cici37
4048598620 Change the API operation e2e test to conformance test. 2024-03-14 20:59:41 +00:00
Patrick Ohly
cf8fffae72 dra e2e: sanity check resource handle
When using structured parameters, the instance name must match and not be in
use already.

NodeUnprepareResources must be called with the same handle are
NodePrepareResources.
2024-03-14 20:42:31 +01:00
Patrick Ohly
f149d6d8f9 dra e2e: watch claims and validate them
Logging claims helps with debugging test failures. Checking the finalizer
catches unexpected behavior.
2024-03-14 20:42:31 +01:00
Kubernetes Prow Robot
d194e6d06c
Merge pull request #123932 from pohly/dra-api-resource-model-rename
dra api: NodeResourceModel -> ResourceModel
2024-03-14 12:11:35 -07:00
Kubernetes Prow Robot
7de02b982e
Merge pull request #123857 from cici37/vapGA
[ValidatingAdmissionPolicy]Add conformance tests for API
2024-03-14 12:11:21 -07:00
Kubernetes Prow Robot
89f03e3988
Merge pull request #123926 from p0lyn0mial/upstream-deflake-test-get-list-non-recursive-with-consistent-list
apiserver/storage/cacher: deflake TestGetListNonRecursiveWithConsistentListFromCache
2024-03-14 11:02:46 -07:00
Kubernetes Prow Robot
6ef2fec0df
Merge pull request #123909 from AkihiroSuda/fix-123906
kubelet: fix mixing up runtime classes with runtime handlers
2024-03-14 11:02:39 -07:00
cici37
045d91d882 Add e2e tests for GA API 2024-03-14 17:12:22 +00:00
Patrick Ohly
a0add8d2c7 dra api: NodeResourceModel -> ResourceModel
When renaming NodeResourceSlice to ResourceSlice, the embedded
[Node]ResourceModel also should have been renamed.
2024-03-14 18:07:36 +01:00
Kubernetes Release Robot
c78812868f CHANGELOG: Update directory for v1.26.15 release 2024-03-14 16:24:51 +00:00
Marek Siarkowicz
0b8e79580e Fix enabling consistent list from watch cache also works for resourceVersion=0 2024-03-14 16:55:56 +01:00
James Munnelly
1c88cd6167 build/rsyncd: replace newlines with spaces when generating ALLOW_HOST list 2024-03-14 11:10:28 +00:00
Kubernetes Prow Robot
d1a2a134c5
Merge pull request #123925 from p0lyn0mial/upstream-cacher-decrease-watch-not-hanging-on-startup-failure
apiserver/storage/cacher: decrease running time of TestWatchNotHangingOnStartupFailure
2024-03-14 02:06:09 -07:00
Lukasz Szaszkiewicz
c44cc9a575 apiserver/storage/cacher: deflake TestGetListNonRecursiveWithConsistentListFromCache 2024-03-14 09:08:29 +01:00
Lukasz Szaszkiewicz
f5d945eb43 apiserver/storage/cacher: decrease running time of TestWatchNotHangingOnStartupFailure
before:
go test -v -race -count 1 -run ^TestWatchNotHangingOnStartupFailure$
ok  	k8s.io/apiserver/pkg/storage/cacher	6.775s

after:
go test -v -race -count 1 -run ^TestWatchNotHangingOnStartupFailure$
ok  	k8s.io/apiserver/pkg/storage/cacher	2.781s
2024-03-14 09:01:14 +01:00
Akihiro Suda
8963e73f12
kubelet: fix mixing up runtime classes with runtime handlers
Fix issue 123906

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-03-14 08:14:48 +09:00
Akihiro Suda
1dc05009fe
api: NodeStatus: rename RuntimeClasses to RuntimeHandlers
The runtime classes are apiserver's concept, while the handlers are kubelet's concept.
For NodeStatus, it makes more sense to return the latter ones here.

This commit modifies the following files:

- pkg/apis/core/types.go
- staging/src/k8s.io/api/core/v1/types.go
- pkg/kubelet/nodestatus/setters.go
- pkg/kubelet/kubelet_node_status.go
- pkg/registry/core/node/strategy.go
- test/e2e_node/mount_rro_linux_test.go

Other changes were auto-generated by running `make update`.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-03-14 08:06:39 +09:00
Akihiro Suda
4a776f66ec
kubelet: silence "unknown runtime class" errors when unsupported
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-03-14 07:08:42 +09:00
Gaurav Kumar Ghildiyal
6680700b5d
Add e2e and integration tests for Service.spec.trafficDistribution (#123812)
* Add e2e tests for Service.spec.trafficDistribution

* Fix linting issue

* Fix spelling

* Add integration tests for trafficDistribution

* Use nodeSelection instead of nodeName to schedule pods on a specific zonal node

* Fix import alias corev1 -> v1 in e2e test

* Address comments

* Add a way to only print log lines in case of errors. This is deemed to be good behaviour by e2e tests guidelines
2024-03-13 14:46:21 -07:00
Kubernetes Prow Robot
3a75a8c8d9
Merge pull request #123891 from p0lyn0mial/upstream-cacher-decrease-running-time-of-test-wait-unti-fresh
apiserver/storage/cacher: decrease of running time of TestWaitUntilWatchCacheFreshAndForceAllEvents
2024-03-13 06:49:18 -07:00
Kubernetes Prow Robot
308d664e3f
Merge pull request #123887 from p0lyn0mial/upstream-cacher-decrease-running-time-of-tests
apiserver/storage/cacher: decrease the running time of tests in the cacher package.
2024-03-13 04:59:33 -07:00
Lukasz Szaszkiewicz
5a74c8e220 apiserver/storage/cacher: decrease the running time of tests in the cacher package.
It turns out that kube has a custom timeout for tests of 3 minutes.
The tests in the cacher package are utilizing nearly the
entire time and are being terminated, resulting in failing jobs.

Before the change, the TestWatchSemantics took ~43s to run. With this simple change, it now takes ~18s.

When we created the tests, we didn't measure the running time and assumed that waiting 1 second on a watch channel
to make sure no more events are received was sufficient.
This PR decreases the waiting time to 300 milliseconds.
Modern computers can perform many tasks within that time.
In addition to that, the tests are serial in nature, meaning that there is no other
actor that could add items to the database, which could result in receiving new items.

After the change the total running time decreased by 17%.
Before the tests needed ~176s after they need ~146s.
The changes also improved TestWatchSemanticInitialEventsExtended.
2024-03-13 11:59:20 +01:00
Kubernetes Prow Robot
881cc5bc96
Merge pull request #123897 from p0lyn0mial/upstream-cacher-decrease-running-time-of-empty-watch-event-cache
apiserver/storage/cacher: decrease of running time of TestEmptyWatchEventCache
2024-03-13 03:55:54 -07:00
Lukasz Szaszkiewicz
926122c035 apiserver/storage/cacher: decrease of running time of TestEmptyWatchEventCache
updates the test to wait 300 ms instead of 3s
the watch was established otherwise
we would be blocking on a call to cache.Watch(...)
in addition to that, the tests are serial in nature,
meaning that there is no other actor
that could add items to the database,
which could result in receiving new items.

Before:
go test -race  -run TestEmptyWatchEventCache
ok  	k8s.io/apiserver/pkg/storage/cacher	8.450s

After:
go test -race  -run TestEmptyWatchEventCache
ok  	k8s.io/apiserver/pkg/storage/cacher	2.635s
2024-03-13 09:00:51 +01:00
Kubernetes Release Robot
c9384550cb CHANGELOG: Update directory for v1.30.0-beta.0 release 2024-03-13 05:40:04 +00:00
Ziqi Zhao
1aeb0ba314 add http method to span name
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2024-03-13 13:25:36 +08:00
Kubernetes Prow Robot
f90461c43e
Merge pull request #123904 from kannon92/innocent-eviction-potential-fix
innocent-pod should not be evicted due to exceeding requests/limits
2024-03-12 16:20:54 -07:00
Kubernetes Prow Robot
2e528db812
Merge pull request #123873 from jiahuif-forks/tests/validating-admission-policy/typechecking-manual-retry
ValidatingAdmissionPolicy: retry policy creation for CRD type checking E2E test
2024-03-12 14:38:18 -07:00
Jiahui Feng
4f6212fb0e generated: ./hack/update-conformance-yaml.sh 2024-03-12 13:35:50 -07:00
Jiahui Feng
2c2d424b01 make type checking tests non-conformance. 2024-03-12 11:15:30 -07:00
Kevin Hannon
19ae61bab0 innocent-pod should not be evicted due to exceeding requests/limits 2024-03-12 13:37:11 -04:00
Joel Speed
0a10014162
Update test to track status prefix on paths 2024-03-12 17:35:34 +00:00
Jefftree
c771c6b526 Update aggregated discovery to v2 fixture 2024-03-12 13:29:14 -04:00
Kubernetes Prow Robot
634fc1b483
Merge pull request #123896 from aojea/revert-122541-headless_selector
Revert "Implement a field selector for ClusterIP on Services"
2024-03-12 08:34:13 -07:00
Kubernetes Prow Robot
3409f0594c
Merge pull request #123674 from serathius/non-recursive
Fix non-recursive list returning "resource version too high" error when consistent list from cache is enabled
2024-03-12 08:34:06 -07:00
Ziqi Zhao
02154293c7 change the integration test
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2024-03-12 22:49:38 +08:00
Kubernetes Prow Robot
30422d5f22
Merge pull request #123866 from aojea/flake_openapi
don´t run openapi spec with ConsistentListFromCache feature gate enabled
2024-03-12 06:53:31 -07:00
Antonio Ojea
7ab1ef644e
Revert "Implement a field selector for ClusterIP on Services" 2024-03-12 12:20:27 +00:00
Sascha Grunert
a35b75ee57
Update cni-plugins to v1.4.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-03-12 12:06:52 +01:00
Maciej Szulik
51204ad046
kube_codegen: expose applyconfig-openapi-schema flag for client generation 2024-03-12 11:31:47 +01:00
Lukasz Szaszkiewicz
3ecbb4dee0 apiserver/storage/cacher: decrease of running time of TestWaitUntilWatchCacheFreshAndForceAllEvents
The individual cases can be safely run in parallel.

Before
go test -race  -run TestWaitUntilWatchCacheFreshAndForceAllEvents
ok  	k8s.io/apiserver/pkg/storage/cacher	10.787s

After:
go test -race  -run TestWaitUntilWatchCacheFreshAndForceAllEvents
ok  	k8s.io/apiserver/pkg/storage/cacher	4.857s
2024-03-12 10:56:19 +01:00
Marek Siarkowicz
a527cab9fc Fix non-recursive list when consistent list from cache is enabled 2024-03-12 10:17:45 +01:00
Ziqi Zhao
84b9fbbdef rename apiserver trace span to http server guidelines
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2024-03-12 09:16:22 +08:00
Antonio Ojea
727d127e6f don´t run openapi spec with ConsistentListFromCache feature gate enabled
Change-Id: I959a5df6259a358db2232733b386afc274b021bd
2024-03-11 21:45:02 +00:00
Jiahui Feng
dc2974c646 retry policy creation for CRD type checking E2E test 2024-03-11 14:39:43 -07:00