Commit Graph

15800 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
30f8f3d146 Merge pull request #131361 from jkyros/fix-inplace-test-wait-quota-status
[FG:InPlacePodVerticalScaling] deflake - wait for resourceQuota status to be populated
2025-04-25 13:35:22 -07:00
John Kyros
00908ce2d1 Wait for resource quota status to be populated
Trying to create a pod using a resourcequota whose status has not been
populated will result in api admission rejecting it with a 403
Forbidden. The pod resize tests do not wait/check to make sure the
resourcequota status is populated before trying to use the quota when
creating a pod, so in scenarious where either the test runs too fast, or
the resourcequota controller is too slow, the tests will fail.

This just makes the test wait up to a minute for the quota status to
populate. The status generation timing/logic gets tested separately in
test/e2e/apimachinery/resource_quota.go, and it waits a minute, so we
wait a minute, but in practice it takes at worst seconds.
2025-04-25 01:09:08 -05:00
Benjamin Elder
540ea5949f skip kubectl proxy env tests when the host is localhost/loopback and would not be proxied 2025-04-24 22:40:05 -07:00
Kubernetes Prow Robot
5da29d0ee7 Merge pull request #131334 from natasha41575/fix-cgorup-error-msg
[FG:InPlacePodVerticalScaling] add more error details to the failing cgroup check
2025-04-24 12:00:41 -07:00
Kubernetes Prow Robot
af53af19e6 Merge pull request #130211 from carlory/add-intree-driver-for-nfs3
e2e storage test: in-tree driver adds the support for nfs v3
2025-04-24 10:52:31 -07: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
62129df407 Merge pull request #129699 from carlory/cleanup-intree
remove unnecessary functions
2025-04-24 01:28:33 -07:00
Kubernetes Prow Robot
077a382170 Merge pull request #131242 from zhifei92/update-mockery-version
Upgrade the mockery version to v2.53.3
2025-04-23 17:09:43 -07:00
Kubernetes Prow Robot
476614ef9e Merge pull request #131236 from jsafrane/fix-rwx-tests
RWX tests should create RWX volumes
2025-04-23 17:09:28 -07:00
Kubernetes Prow Robot
c77ed4ca9e Merge pull request #131217 from jsafrane/shorten-log-test-names
Shorten long directory names with e2e pod logs
2025-04-23 17:09:20 -07:00
Kubernetes Prow Robot
63224eef2d Merge pull request #131187 from bertinatto/fix-podsecurity-cidrs
Update PodSecurityLevel used during Service CIDRs tests
2025-04-23 17:08:58 -07:00
Kubernetes Prow Robot
f3d42bc845 Merge pull request #131141 from rphillips/fix_test_case_kubelet_authz_endpoint
kubelet: update kubelet_authz to new test framework
2025-04-23 17:08:30 -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
e63dcda8a2 Merge pull request #131064 from aojea/e2e_services_ip
e2e service ip preservation test
2025-04-23 15:59:13 -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
27815acee1 remove outdate comment
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-04-21 13:58:58 +08:00
Jordan Liggitt
95b926c93a Feature-gate watchlist e2e 2025-04-19 17:18:31 -04:00
Antonio Ojea
a8f6d77c8d ServiceCIDR and IPAddess Conformance
Change-Id: I6ee188cc8c163c312f8a8da9f1277d83e1ea634c
2025-04-15 21:47:43 +00:00
Kubernetes Prow Robot
cfed8c7d41 Merge pull request #131234 from carlory/fix-131229
Fix flaky test: Metrics should grab all metrics from kubelet /metrics/resource endpoint
2025-04-14 08:19:13 -07:00
Kubernetes Prow Robot
d6e3f34f70 Merge pull request #131211 from BenTheElder/max-pods
fix flaky garbage collector tests
2025-04-14 08:19:06 -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
zhangzhifei16
c1ff9cf4e8 chore: Upgrade the mockery version to v2.53.3. 2025-04-10 21:16:47 +08:00
Jan Safranek
e5a5f726dd Tag SELinux tests that require SELinux warning controller
The controller is available only with SELinuxChangePolicy FG enabled.
Kubernetes e2e jobs do the right --focus & --skip explicitly in the SELinux
jobs, this just helps other test runners to figure out what FGs are needed
to run the tests.

When at it, I noticed SELinuxMountReadWriteOncePod tag is always required, so
add it on the common level and not in each test.
2025-04-10 14:36:02 +02:00
Jan Safranek
975e653af4 RWX tests should create RWX volumes
The test that checks that a volume can be accessed from multiple nodes
should create ReadWriteMany volume and not ReadWriteOnce.
2025-04-10 13:01:07 +02:00
Jan Safranek
b206264ffb Shorten long directory names with e2e pod logs
In a downstream test job, I've seen an e2e test failing to create a
directory for Pod logs when running an e2e test. Shorten them to 255
characters.

For example, consider this test: "[sig-storage] CSI Mock selinux on mount metrics and SELinuxWarningController SELinuxMount metrics [LinuxOnly] [Feature:SELinux] [Serial] error is not bumped on two Pods with a different policy RWX volume (MountOption + MountOption) [FeatureGate:SELinuxMountReadWriteOncePod] [Beta] [FeatureGate:SELinuxChangePolicy] [Beta] [FeatureGate:SELinuxMount] [Beta] [Feature:OffByDefault] [sig-storage, Feature:SELinux, Serial, FeatureGate:SELinuxMountReadWriteOncePod, Beta, FeatureGate:SELinuxChangePolicy, FeatureGate:SELinuxMount, Feature:OffByDefault, BetaOffByDefault]"

During execution, the test will create a directory
`error_is_not_bumped_on_two_Pods_with_Recursive_policy_and_a_different_context_on_RWX_volume_FeatureGate_SELinuxMountReadWriteOncePod_Beta_FeatureGate_SELinuxChangePolicy_Beta_FeatureGate_SELinuxMount_Beta_Feature_OffByDefault_`,
which has 226 characters and it's close to the limit (256).
2025-04-09 15:45:31 +02:00
Benjamin Elder
1eab3036b6 mark tests that use estimateMaxPods as serial 2025-04-08 14:46:38 -07:00
Benjamin Elder
b2933c0ada estimate some system daemonset overhead for max pods 2025-04-08 14:46:06 -07:00
Fabio Bertinatto
de98a71ff5 Update PodSecurityLevel used during Service CIDRs tests 2025-04-07 08:09:59 -03:00
Ryan Phillips
58ff3129ad update kubelet_authz.go to new test framework 2025-04-03 15:57:08 -05: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
Kubernetes Prow Robot
047e4c8e56 Merge pull request #131039 from natasha41575/deflakeQuotaTest
deflake pod-resize-resource-quota-test
2025-03-26 11:12:39 -07:00
Kubernetes Prow Robot
070f0ad3bd Merge pull request #129970 from mortent/AddResourceV1beta2API
Add resource v1beta2 API
2025-03-26 09:10:47 -07:00
Morten Torkildsen
1d42ba78ff Add e2e tests for resource v1beta2 API 2025-03-26 14:52:47 +00:00
Antonio Ojea
5e4600e46b e2e service ip preservation test 2025-03-26 07:55:40 +00:00
Kubernetes Prow Robot
c90a4b16b6 Merge pull request #130945 from danwinship/prefersame-e2e-test
e2e testing for PreferSameZone/PreferSameNode
2025-03-25 18:12:34 -07:00
Benjamin Elder
4fa9639145 kubectl http proxy e2e: do not append os.Environ() redundantly 2025-03-25 15:08:34 -07:00
Benjamin Elder
f7f4aa02ba kubectl e2e: debug appended environment variables 2025-03-25 15:08:04 -07:00
Natasha Sarkar
2350e7a911 deflake pod-resize-resource-quota-test 2025-03-25 21:12:29 +00:00
James Sturtevant
2073252d5a Ginkgo skip needs to run inside leaf node otherwise it panics
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
2025-03-25 06:59:26 -07:00
Kubernetes Prow Robot
ff25881bc1 Merge pull request #130556 from sreeram-venkitesh/kep-4960-container-stop-signals
KEP 4960: Container Stop Signals
2025-03-24 16:36:32 -07:00
Dan Winship
478a6f9d05 Add a tests for PreferSameNode 2025-03-24 18:47:45 -04:00
Dan Winship
0ee6b0dbfa Add "multi-node" TrafficDistribution test
The existing TrafficDistribution test didn't really distinguish "same
zone" from "same node". Add another test that makes sure there are at
least 2 nodes in each zone so it can do that.

(Keep the original test as well to avoid losing coverage in CI systems
with single-schedulable-node-per-zone clusters.)
2025-03-24 18:47:37 -04:00
Dan Winship
7956b37f62 Add test for trafficDistribution: PreferSameZone
(Identical to the PreferClose test.)
2025-03-24 18:47:36 -04:00
Dan Winship
23aff5dabd Split out the pieces of the TrafficDistribution test 2025-03-24 18:47:34 -04:00