Jordan Liggitt
4b0eeeb618
Make pod-security-admission honor emulation version
2025-09-17 15:32:32 -04: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
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
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
Tim Allclair
947a9f26fa
Move pod resize e2e utilities out of e2e/framework
2025-04-23 14:02:36 -07:00
Hironori Shiina
5a14fdbf7f
e2e: Keep original error when exec in container fails
2025-03-28 11:18:33 +00:00
Natasha Sarkar
5c7491bf08
accept rounded container cpu limits in container cgroup tests ( #131059 )
2025-03-27 23:40:34 -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
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
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
carlory
0a32e7d6e7
make sure that container is running when execute kubelet exec command
...
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-07 14:42:21 +08:00
carlory
627bfbdfdf
windows does not support sleep infinity
2025-03-06 15:13:12 +08:00
carlory
b56d30e32a
fix flaky test: Subpath Container restart should verify that container can restart successfully after configmaps modified
...
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-24 11:24:58 +08:00
carlory
da2f36be58
remove NodeOSDistroIs from test/e2e/framework/pod
2025-02-12 15:33:37 +08:00
ndixita
99a6153a4f
e2e tests
...
Signed-off-by: ndixita <ndixita@google.com>
2024-11-08 03:00:54 +00: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
c903c29c3b
e2e: support admissionapi.LevelRestricted in test/e2e/framwork/pod
...
CreatePod and MakePod only accepted an `isPrivileged` boolean, which made it
impossible to write tests using those helpers which work in a default
framework.Framework, because the default there is LevelRestricted.
The simple boolean gets replaced with admissionapi.Level. Passing
LevelRestricted does the same as calling e2epod.MixinRestrictedPodSecurity.
Instead of explicitly passing a constant to these modified helpers, most tests
get updated to pass f.NamespacePodSecurityLevel. This has the advantage
that if that level gets lowered in the future, tests only need to be updated in
one place.
In some cases, helpers taking client+namespace+timeouts parameters get replaced
with passing the Framework instance to get access to
f.NamespacePodSecurityEnforceLevel. These helpers don't need separate
parameters because in practice all they ever used where the values from the
Framework instance.
2023-07-03 16:26:28 +02:00
Michal Wozniak
fd28f69ca4
Add e2e_node test for oom killed container reason
2023-02-20 08:15:45 +01:00
TommyStarK
a46cfe5d1e
test/e2e: Replace deprecated pointer function
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-01-05 18:43:58 +01:00
Michal Wozniak
52cd6755eb
Add pod disruption conditions for kubelet initiated failures
2022-11-07 11:23:22 +01:00
James Sturtevant
061b8e8049
RunAsUser causes pods to not start on Windows
2022-05-27 09:31:39 -07:00
Tim Allclair
ccc69b1e9a
Add MixinRestrictedPodSecurity e2e util
2022-05-24 16:10:16 -07:00
Tim Allclair
ab29782d24
Use typed ImageID for imageutils images
2022-05-12 08:51:07 -07:00
Sergiusz Urbaniak
373c08e0c7
test/e2e/framework: configure pod security admission level for e2e tests
2022-03-28 15:42:10 +02:00
Mauricio Poppe
ee34cd640a
enable gcpdcsi multivolume tests with windows nodes
2021-06-22 18:27:50 +00:00
Jing Xu
5e5a3ce85a
Fix multivolume access tests for Windows
...
Fix issue for multivolume access tests
Change-Id: I7e00d8bfe9682540b60b5998f78f2a48550934af
2021-05-07 10:53:40 -07:00
Mauricio Poppe
5d9053014e
Update tests to use common pod functions from framework/pod/utils.go
2021-03-11 07:25:56 +00:00