3767 Commits

Author SHA1 Message Date
Luiz Oliveira
7fbf63a23f HPA support for pod-level resource specifications (#132430)
* HPA support for pod-level resource specifications

* Add e2e tests for HPA support for pod-level resource specifications
2025-07-29 09:02:26 -07:00
Kubernetes Prow Robot
6ad14ad876 Merge pull request #132991 from danwinship/endpoints-e2e-updates
Endpoints e2e updates for KEP-4974
2025-07-23 19:56:26 -07:00
HirazawaUi
8d65e1e98e Add e2e tests. 2025-07-23 22:57:11 +08:00
ylink-lfs
fb4e252224 test: add batch pod deletion for kubelet e2e tests 2025-07-19 14:13:59 +08:00
Kubernetes Prow Robot
7fa6cdde88 Merge pull request #127630 from dshebib/e2eNode_UpdateToAgnhost
[e2e_node] containers_lifecycle update from busybox to agnhost
2025-07-18 15:24:25 -07:00
Dan Winship
24065780ed Add e2eendpointslice.WaitForEndpointPorts, use in some tests.
Slightly-more-generic replacement for validateEndpointsPortsOrFail()
(but only validates EndpointSlices, not Endpoints).

Also, add two new unit tests to the Endpoints controller, to assert
the correct Endpoints-generating behavior in the cases formerly
covered by the "should serve endpoints on same port and different
protocols" and "should be updated after adding or deleting ports" e2e
tests (since they are now EndpointSlice-only). (There's not much point
in testing the Endpoints controller in "end to end" tests, since
nothing in a normal cluster ever looks at its output, so there's
really only one "end" anyway.)
2025-07-17 15:34:34 -04:00
Dan Winship
b35ad4e9b0 Add e2eendpointslice.WaitForEndpointPods, use in various test
These tests were using validateEndpointsPortsOrFail() not because they
cared about ports, but just because it was there, or in some cases
because they needed to wait for one pod to exit and a different pod to
start, which can't be done with framework.WaitForServiceEndpointsNum()
(or e2eendpointslice.WaitForEndpointCount) without racing. Update
these tests using the new e2eendpointslice.WaitForEndpointPods, which
can wait for specific expected pods.

(This also means these tests now only watch EndpointSlices, rather
than watching both Endpoints and EndpointSlices, which is fine,
because none of them are doing tricky things that actually require
making assertions about the exact contents of the
Endpoints/EndpointSlices. They just want to know when the controller
has updated things to point to the expected pods.)
2025-07-16 11:42:02 -04:00
Dan Winship
b7998a397b Add e2eendpointslice.WaitForEndpointCount, use it in some network tests
This replaces framework.WaitForServiceEndpointsNum
2025-07-16 11:42:00 -04:00
Dan Winship
665599417a Add e2eendpointslice.WaitForEndpointSlices, use it in a few places
(This is mostly a helper for the other functions about to be added,
but it's useful by itself in a few places.)
2025-07-16 06:17:34 -04:00
Patrick Ohly
1a284472f1 E2E framework: retry also on EOF errors
EOF occurs after restarting the API server and, despite a retry loop in
client-go/rest/request.go, sometimes is returned to the application.
2025-07-15 12:52:26 +02:00
Patrick Ohly
6a7b9589f6 E2E framework: support setting REST config
A special test (for example, one which manages its own cluster) could almost
construct a Framework instance because most fields are exported. The
`clientConfig` field isn't because REST configs often need to be deep-copied to
avoid accidentally updating some shared copy, so for this special case a
SetClientConfig is needed.
2025-07-15 12:52:26 +02:00
ylink-lfs
30a3bfdbcb chore: remove residual uint64ptr usage with ptr package 2025-07-08 22:20:16 +08:00
PatrickLaabs
2f7148782b chore: depr. pointer pkg replacement for test/e2e and utils 2025-07-06 22:18:03 +02:00
Daniel Shebib
179c4398f3 use defaultImage per OS 2025-07-01 23:17:51 -05:00
Patrick Ohly
efcb03759d E2E framework: sort tests in JUnit report
This is more useful when viewing results in spyglass because related tests are
shown together. The default was to show them by start or end time (not exactly
sure), which almost looked random because those times are not shown.
2025-06-27 16:10:38 +02:00
Dan Winship
a437a269f1 Fix comments on ginkgo label functions 2025-05-12 11:22:18 -04:00
Kubernetes Prow Robot
627ce4946c Merge pull request #131689 from carlory/remove-expectNoError
use framework.ExpectNoError instead
2025-05-11 05:01:14 -07:00
carlory
d5a56739ce use framework.ExpectNoError instead
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-05-11 13:12:29 +08:00
Kubernetes Prow Robot
79d1cf301e Merge pull request #131409 from bertinatto/fix-authz-test
e2e: set appropriate groups in SAR of kubelet authz test
2025-05-08 14:39:15 -07:00
Kubernetes Prow Robot
b1ce2a61b5 Merge pull request #131249 from MaysaMacedo/randomize-name
Kubelet: Randomize ClusterRole name in e2e
2025-05-07 07:59:16 -07:00
Maysa Macedo
b1bb9a5885 Kubelet: Randomize ClusterRole name in e2e
It's possible that a conflict will happen when
attempting to create a `ClusterRole` resource
without a randomized name given that is a cluster
scoped object and another object with same name
might exist. This commit fixes this issue by ensuring
the name of the `ClusterRole` is randomized. Additionally,
it adds clean up for the clusterRole and clusterRoleBinding.
2025-05-06 14:30:10 -03:00
Kubernetes Prow Robot
73b5f84cb6 Merge pull request #131487 from hshiina/dedup-cgroup-verification
e2e: Deduplicate cgroup verification
2025-05-06 04:03:17 -07:00
Fabio Bertinatto
e36a168a63 test/e2e/node/kubelet_authz.go: fix SAR to include service account groups
This sets the appropriate groups (system:authenticated, system:serviceaccounts,
system:serviceaccounts:<ns>) in the SAR used in WaitForAuthzUpdate to accurately
simulate the service account’s identity.
2025-05-05 10:37:42 -03:00
Jordan Liggitt
6bb6c99342 Drop null creationTimestamp from test fixtures 2025-05-02 15:38:40 -04:00
Hironori Shiina
7e1cec680e e2e: Deduplicate cgroup verification
This fix deduplicates cgroup verification in tests for
InPlacePodVerticalScaling and PodLevelResources.
2025-05-01 14:53:26 +02:00
Natasha Sarkar
932cff5dd4 add more error details to the failing cgroup check 2025-04-24 15:51:08 +00:00
Kubernetes Prow Robot
4bcaa515c9 Merge pull request #131267 from tallclair/resize-helpers
Move pod resize e2e utilities out of e2e/framework
2025-04-24 01:28:44 -07:00
Kubernetes Prow Robot
1c1ee80682 Merge pull request #131100 from hshiina/exec-fail
[InPlacePodVerticalScaling] e2e: Keep original error when exec in container fails
2025-04-23 15:59:49 -07:00
Kubernetes Prow Robot
a63fd40447 Merge pull request #131060 from BenTheElder/kubectl-http-proxy
improve kubectl e2e test debugging
2025-04-23 15:58:59 -07:00
Tim Allclair
947a9f26fa Move pod resize e2e utilities out of e2e/framework 2025-04-23 14:02:36 -07:00
carlory
7d7fc2d989 Fix flaky test: Metrics should grab all metrics from kubelet /metrics/resource endpoint
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-04-11 11:30:28 +08:00
Hironori Shiina
5a14fdbf7f e2e: Keep original error when exec in container fails 2025-03-28 11:18:33 +00:00
Kubernetes Prow Robot
bdda0a530e Merge pull request #131090 from natasha41575/deflakeCgroupNotFound
[FG:InPlacePodVerticalScaling] deflake - wait for containers to have started before doing cgroup check
2025-03-28 00:54:34 -07:00
Natasha Sarkar
5c7491bf08 accept rounded container cpu limits in container cgroup tests (#131059) 2025-03-27 23:40:34 -07:00
Natasha Sarkar
d349ac57e4 wait for containers to have started before doing cgroup check 2025-03-27 20:52:44 +00:00
Natasha Sarkar
83bb5d5705 deflake restart count assertions in in-place resize tests (#131055) 2025-03-27 07:56:40 -07:00
Benjamin Elder
f7f4aa02ba kubectl e2e: debug appended environment variables 2025-03-25 15:08:04 -07:00
Jean-Marc François
4db8e8cc1d Add configurable tolerance e2e test. 2025-03-21 18:48:38 -04:00
Kubernetes Prow Robot
52ab771774 Merge pull request #130917 from vinaykul/ippr-mem-req-ucr
Invoke UpdateContainerResources or trigger container restarts when memory requests are resized
2025-03-20 13:08:56 -07:00
vinay kulkarni
d62e766dad Fix function comment 2025-03-20 16:13:45 +00:00
vinay kulkarni
1208f25b3f Verify oom_score_adj for containers that have been restarted in pod resize e2e 2025-03-20 05:57:41 +00:00
Benjamin Elder
798ce5bde2 e2e framework: add BetaDefaultOff feature gate testcase 2025-03-19 15:36:47 -07:00
Benjamin Elder
507621e0da implement WithFeatureGate label proposal
Ginkgo label changes:
- Feature:Alpha => Alpha
- Feature:Beta => Beta
- Feature:OffByDefault mirrored to labels from test name
- BetaOffByDefault label added
2025-03-19 15:19:28 -07:00
vinay kulkarni
7fe7754e67 Fix unit test, remove wait after resize 2025-03-19 21:27:32 +00:00
yongruilin
a2c739f3d5 chore: [e2e/framework] Updates test feature gates to versioned feature gates 2025-03-19 20:02:55 +00:00
vinay kulkarni
7f4b9a52db Consider memory requests in determining if resize is in progress, set termination grace period to 0 2025-03-19 19:11:21 +00:00
vinay kulkarni
951e33fdf9 Fix gofmt issues 2025-03-19 15:13:44 +00:00
vinay kulkarni
917c4b310b Fix lint issues, use kuberuntime's minGracePeriod const, boost container restart wait period 2025-03-19 13:26:01 +00:00
vinay kulkarni
d5d008a6bd Invoke UpdateContainerResources or trigger container restarts (for RestartContainer policy) when memory requests are resized 2025-03-19 06:33:27 +00:00
Natasha Sarkar
4c2be4bdde kubelet sets observedGeneration in conditions 2025-03-18 15:43:24 +00:00