Commit Graph

33 Commits

Author SHA1 Message Date
Paco Xu
03a15fa65d Revert "[FG:InPlacePodVerticalScaling] Graduate to Beta" 2024-11-20 14:55:29 +08:00
Tim Allclair
4bbc6f1c2c Move pod_resize tests out of alpha 2024-11-09 14:29:02 -08:00
Anish Shah
5dbb793207 test: fix InPlacePodVerticalScaling e2e tests 2024-11-06 07:35:33 +00:00
Anish Shah
5b5e4a87c3 apply feedback 2024-11-06 01:33:16 +00:00
Anish Shah
832d7f7dc2 apply feedback 2024-11-06 01:33:15 +00:00
Anish Shah
dc3c4ed559 pod resize support in LimitRanger admission plugin 2024-11-06 01:33:15 +00:00
Anish Shah
1b98fe6079 support for resize subresource in ResourceQuota admission. 2024-11-06 01:33:15 +00:00
Anish Shah
33a3d7578b e2e: Use resize subresource in e2e tests 2024-11-06 01:33:14 +00:00
Tim Allclair
9d28cc0413 Improve resize test debugability 2024-11-01 14:02:58 -07:00
Tim Allclair
45b1104878 Fix resize E2E tests 2024-11-01 14:02:58 -07:00
Anish Shah
3e6df4a871 test: remove container runtime check and fix other nits 2024-10-17 17:14:04 -07:00
Anish Shah
d72c7319f8 test: refactor duplicate inplace pod resize test utilities 2024-10-17 05:35:40 -07:00
Anish Shah
b8897e688d test: refactor duplicate IPPR e22 tests.
This change refactors duplicate IPPR cluster and node e2e tests under
test/e2e/common directory
2024-10-17 05:27:27 -07:00
Itamar Holder
85068bce13 Patch all nodes with extended resource to allow testing on every node
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-08-28 16:28:54 +03:00
Itamar Holder
f43f5bc821 Add an e2e test
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-08-28 16:28:53 +03:00
hjet
30e395a7fa Roll back resize patches in doPodResizeTests 2024-07-05 11:41:07 -04:00
Sotiris Salloumis
7dbc2a9ea8 pod-resize-scheduler-tests: fix ci-kubernetes-e2e-ec2 2024-06-26 20:20:13 +02:00
胡玮文
859bd02593 e2e: add TERM trap to pod sleep command
This should avoid the 30s delay caused by shell not responding to SIGTERM, and can only be killed by SIGKILL.

If the pod is deleted with the namespace during cleanup, this also makes cleanup faster, and frees up the resources for the next test cases faster.
2024-06-11 13:52:47 +08:00
Patrick Ohly
f2cfbf44b1 e2e: use framework labels
This changes the text registration so that tags for which the framework has a
dedicated API (features, feature gates, slow, serial, etc.) those APIs are
used.

Arbitrary, custom tags are still left in place for now.
2023-11-01 15:17:34 +01:00
Kubernetes Prow Robot
dea3f1a119 Merge pull request #112599 from fabi200123/Adding-Windows-Support-for-InPlaceVerticalScaling
Adding Windows support for InPlace Pod Vertical Scaling
2023-10-31 19:15:12 +01:00
Kubernetes Prow Robot
7658fe8dc4 Merge pull request #118456 from testwill/bool-constant
chore: omit comparison to bool constant
2023-10-26 12:59:05 +02:00
Fabian Fulga
868adeb3bd Update IPPVS e2e tests for containerd version above 1.6.9 2023-09-12 01:53:28 +03:00
wen.rui
3d9b5d0577 e2e_node:stop using deprecated framework.ExpectError 2023-09-01 17:42:36 +08:00
宋文杰
63cf568251 e2e_node: stop using deprecated framework.ExpectEqual 2023-07-26 10:20:30 +08:00
guoguangwu
0da37d8c54 chore: omit comparison to bool constant 2023-06-29 10:41:50 +08:00
Patrick Ohly
8b33e8bdd1 e2e: fix gomega.Expect calls without assertions
"gomega.Expect" is not the same as "assert" in C: it always has to be combined
with a statement of what is expected.

Found with the new ginkgolinter, for example:

    test/e2e/node/pod_resize.go:242:3: ginkgo-linter: "Expect": missing assertion method. Expected "Should()", "To()", "ShouldNot()", "ToNot()" or "NotTo()" (ginkgolinter)
              gomega.Expect(found == true)
2023-06-27 14:20:20 +02:00
Tim Hockin
dd7af241c1 Replace diff.ObjectDiff with cmp.Equal
More obvious and cheaper, and ObjectDiff is already written in terms of
cmp.
2023-04-12 08:45:32 -07:00
vinay kulkarni
9a805db010 Set default resize policy only for specified resource types, rename RestartNotRequired -> NotRequired 2023-03-12 23:46:40 +00:00
vinay kulkarni
8b23497ae7 Restructure naming of resource resize restart policy 2023-03-12 23:11:32 +00:00
vinay kulkarni
01b96e7704 Rename ContainerStatus.ResourcesAllocated to ContainerStatus.AllocatedResources 2023-03-10 14:49:26 +00:00
Chen Wang
fd6105d015 fix last minute scheduler changes for inplace update 2023-03-06 18:47:02 -05:00
Chen Wang
7db339dba2 This commit contains the following:
1. Scheduler bug-fix + scheduler-focussed E2E tests
2. Add cgroup v2 support for in-place pod resize
3. Enable full E2E pod resize test for containerd>=1.6.9 and EventedPLEG related changes.

Co-Authored-By: Vinay Kulkarni <vskibum@gmail.com>
2023-02-24 18:21:21 +00:00
Vinay Kulkarni
f2bd94a0de In-place Pod Vertical Scaling - core implementation
1. Core Kubelet changes to implement In-place Pod Vertical Scaling.
2. E2E tests for In-place Pod Vertical Scaling.
3. Refactor kubelet code and add missing tests (Derek's kubelet review)
4. Add a new hash over container fields without Resources field to allow feature gate toggling without restarting containers not using the feature.
5. Fix corner-case where resize A->B->A gets ignored
6. Add cgroup v2 support to pod resize E2E test.
KEP: /enhancements/keps/sig-node/1287-in-place-update-pod-resources

Co-authored-by: Chen Wang <Chen.Wang1@ibm.com>
2023-02-24 18:21:21 +00:00