Commit Graph

3778 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
b508767369 Merge pull request #132655 from ylink-lfs/ci/httpd_removal
ci: remove httpd usage while using agnhost instead
2025-09-05 20:23:24 -07:00
Kubernetes Prow Robot
e8b19be173 Merge pull request #133440 from carlory/deflake-service-tests
deflake e2e test: Services should implement NodePort and HealthCheckNodePort correctly when ExternalTrafficPolicy changes
2025-09-05 14:37:42 -07:00
Kubernetes Prow Robot
18c188467d Merge pull request #133438 from saschagrunert/timeout-pod-should-get-evicted
Increase termination timeout for `evicted pods should be terminal` test
2025-09-03 03:53:14 -07:00
Kubernetes Prow Robot
15b9222fa7 Merge pull request #133477 from chenggu88/e2e
Allow IfNotPresent to be used in node e2e tests
2025-09-03 02:11:16 -07:00
Sascha Grunert
c8f8f66e6d Increase termination timeout for evicted pods should be terminal test
This doubles the termination timeout for the eviction test from 5min to
10min. Reason for that is that the eviction manager relies on pod stats
metrics, which may not be acceessible during a period of time because of
the kubelet API unreachable. This could be reasoned in hardware or
network pressure when multiple tests run in parallel.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-09-03 08:58:46 +02:00
ylink-lfs
1fd7f308fc ci: remove httpd usage while using agnhost instead 2025-09-01 20:11:18 +08:00
carlory
233384d4e4 deflake e2e test: Services should implement NodePort and HealthCheckNodePort correctly when ExternalTrafficPolicy changes
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-08-29 11:24:44 +08:00
Kubernetes Prow Robot
22a567ac31 Merge pull request #133571 from BenTheElder/deprecated-missing-oh-no
fix many incorrect deprecation warnings in godoc, enable deprecatedComment linter
2025-08-27 18:30:53 -07:00
Benjamin Elder
189d6d726b fix formatting of deprecation warning in test/e2e/framework.WaitForServiceEndpointsNum
"// Deprecated:" needs to be in it's own paragraph
2025-08-15 11:29:53 -07:00
Cheng Gu
ddffd8e389 Allow IfNotPresent to be used in node e2e tests
Currently the node e2e tests overrides the image pull policy to PullNever,
if the policy is not PullAlways.
2025-08-11 22:28:20 +00:00
Jan Safranek
1ea4720268 Add e2e test for SELinuxMount to CSI drivers 2025-08-08 14:25:24 +02:00
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