Commit Graph

121915 Commits

Author SHA1 Message Date
Ed Bartosh
6f5240b19c e2e_node: fix podresources test
Fixed `The phase of Pod e2e-test-pod is Succeeded which is unexpected`
error. `e2epod.NewPodClient(f).CreateSync` is unable to catch 'Running'
status of the pod as pod finishes too fast.
Using `Create` API should solve the issue as it doesn't query pod
status.
2024-03-21 13:11:03 +02:00
Kubernetes Prow Robot
a309fadbac
Merge pull request #124001 from kerthcet/fix/multi-prifile
Revert: enhancement(scheduler): share waitingPods among profiles
2024-03-20 07:21:53 -07:00
kerthcet
84750fe52e Revert "enhancement(scheduler): share waitingPods among profiles"
This reverts commit 227c1915db.
2024-03-19 22:52:59 +01:00
kerthcet
a67d1dc010 Revert "Fix flaky test on multi profiles waiting pod"
This reverts commit 5b072a59a2.
2024-03-19 22:52:07 +01:00
Kubernetes Prow Robot
fe9e4698a3
Merge pull request #123994 from serathius/undo-double-run-test-watch-semantics
Undo double run of the TestWatchSemantics test to avoid hitting timeout
2024-03-19 09:49:39 -07:00
Marek Siarkowicz
225749eb68 Undo double run of the TestWatchSemantics test to avoid hitting timeout 2024-03-19 15:17:50 +01:00
Kubernetes Prow Robot
1f3c65c5f4
Merge pull request #123983 from aramase/aramase/i/123921_flake_fix
Fix for TestStorageVersionMigrationWithCRD integration test failure
2024-03-19 04:06:05 -07:00
Anish Ramasekar
4f1c91b24a
Fix for TestStorageVersionMigrationWithCRD integration test failure
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2024-03-18 23:12:50 -07:00
Kubernetes Prow Robot
a2a709077f
Merge pull request #123956 from ii/add-alpha-getStoragemigrationAPIGroup
Add alpha endpoint getStoragemigrationAPIGroup to pending_eligible_endpoints.yaml
2024-03-18 14:57:18 -07:00
Kubernetes Prow Robot
2753078f7c
Merge pull request #123939 from cici37/vapGAConformance
Change the API tests to conformance tests
2024-03-18 12:30:05 -07:00
Kubernetes Prow Robot
aa73f3163a
Merge pull request #122292 from sanposhiho/nodeupdate
register Node/UpdateTaint event to plugins which has Node/Add only and doesn't have Node/UpdateTaint
2024-03-18 08:33:54 -07:00
Kubernetes Prow Robot
065a0f2d51
Merge pull request #123785 from seans3/streamtunnel-unit-tests
Adds unit tests to `PortForward` streamtunnel
2024-03-18 07:31:17 -07:00
Kubernetes Prow Robot
a1605fb3dd
Merge pull request #123935 from serathius/consistent-watch-from-etcd
Serve watch without resourceVersion from cache and introduce a WatchFromStorageWithoutResourceVersion feature gate to allow serving watch from storage
2024-03-18 05:51:14 -07:00
Marek Siarkowicz
0130072b05 Serve watch without resourceVersion from cache and introduce a WatchFromStorageWithoutResourceVersion feature gate to allow serving watch from storage. 2024-03-18 11:55:13 +01:00
Kubernetes Prow Robot
9df98f3d39
Merge pull request #123943 from dims/allow-installing-newer-containerd-runc-on-cos
Allow installing newer containerd runc on cos
2024-03-18 02:39:27 -07:00
Davanum Srinivas
fc555839d7
Allow installing newer containerd/runc on COS
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-03-16 21:16:32 +01:00
Kensei Nakada
2b56de43e5 register Node/UpdateNodeTaint event to plugins which has Node/Add only, doesn't have Node/UpdateNodeTaint 2024-03-16 14:13:06 +00:00
Kubernetes Release Robot
656cb1028e CHANGELOG: Update directory for v1.29.3 release 2024-03-15 20:15:33 +00:00
Stephen Heywood
e5b497df4f Add alpha endpoint getStoragemigrationAPIGroup 2024-03-16 08:39:47 +13:00
Kubernetes Release Robot
fa97f37fea CHANGELOG: Update directory for v1.27.12 release 2024-03-15 19:26:31 +00:00
Kubernetes Release Robot
bf38ed0e5b CHANGELOG: Update directory for v1.28.8 release 2024-03-15 18:53:28 +00:00
Kubernetes Prow Robot
89b1db79d7
Merge pull request #123676 from serathius/rv0
Fix enabling consistent list from watch cache also works for resourceVersion=0
2024-03-15 09:51:00 -07:00
Kubernetes Prow Robot
466d9378db
Merge pull request #123907 from bart0sh/PR135-kubelet-ResourceSlice-OwnerReferences
kubelet: assign Node as an owner for the ResourceSlice
2024-03-15 06:35:02 -07:00
Ed Bartosh
26881132bd kubelet: assign Node as an owner for the ResourceSlice
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2024-03-15 09:46:13 +02:00
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
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
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
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