Commit Graph

15786 Commits

Author SHA1 Message Date
Davanum Srinivas
7be92699ea Apparently some EC2 images we use do not have /proc/net/nf_conntrack
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:02:43 -05:00
Davanum Srinivas
1479c62a20 test: cleanup from review
- Use netutils.IsIPv6(ip) instead of manual nil/To4 check
- Remove unnecessary ip.To16() call since IPv6 is already 16 bytes
- Remove ipFamily from grep pattern since IP format ensures correctness

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:02:43 -05:00
Davanum Srinivas
727969bb68 test: Fix KubeProxy CLOSE_WAIT test for IPv6 environments
The /proc/net/nf_conntrack file uses fully expanded IPv6 addresses
with leading zeros in each 16-bit group. For example:
  fc00:f853:ccd:e793::3 -> fc00:f853:0ccd:e793:0000:0000:0000:0003

Add expandIPv6ForConntrack() helper function to expand IPv6 addresses
to the format used by /proc/net/nf_conntrack before using them in
the grep pattern.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:02:43 -05:00
Davanum Srinivas
2e3a2fa222 test: Read /proc/net/nf_conntrack instead of using conntrack binary
The distroless-iptables image no longer includes the conntrack binary
as of v0.8.7 (removed in kubernetes/release#4223 since kube-proxy no
longer needs it after kubernetes#126847).

Update the KubeProxy CLOSE_WAIT timeout test to read /proc/net/nf_conntrack
directly instead of using the conntrack command. The file contains the
same connection tracking data and is accessible from the privileged
host-network pod.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:02:41 -05:00
Jan Safranek
aa6b40b2aa Added e2e tests with disabled SELinux
Added few tests with a CSI driver that does not support SELinux and has it
disabled in its CSIDriver instance
2026-01-12 14:48:14 +01:00
Jan Safranek
e6ae3c9405 selinux: add e2e test with a completed pod
Add a test that checks the SELinux controller does not report conflicts
with Succeeded pods.
2026-01-12 14:48:13 +01:00
Ciprian Hacman
4978d948f2 Update pod resize test to accept new cpu.weight conversion 2025-12-17 16:31:15 +02:00
Kubernetes Prow Robot
6c4310711b Merge pull request #133628 from nojnhuh/automated-cherry-pick-of-#133562-upstream-release-1.33
Automated cherry pick of #133562: DRA: wait for stats to converge in "creates slices" e2e test
2025-09-26 01:38:19 -07:00
Kubernetes Prow Robot
83101dfc66 Merge pull request #133746 from jsafrane/automated-cherry-pick-of-#133425-release-1.33
Automated cherry pick of #133425: Fix SELinux label comparison
2025-09-04 02:27:24 -07:00
Kubernetes Prow Robot
a197a68909 Merge pull request #133122 from vr4manta/automated-cherry-pick-of-#132891-upstream-release-1.33
Automated cherry pick of #132891: Added NodeSelectors field to external DriverDefinition
2025-09-04 02:27:16 -07:00
Jan Safranek
fe2d1b2687 Add missing cases to SELinuxMount tests 2025-08-28 10:31:15 +02:00
Dan Winship
9d09997311 Remove patch/update from ServiceCIDR API conformance test
They were already listed in ineligible_endpoints.yaml, so we shouldn't
be testing them here anyway.
2025-08-21 09:09:11 -04:00
Jon Huhn
1e3ff8d7ad DRA: wait for stats to converge in "creates slices" e2e test 2025-08-20 14:00:07 -05:00
Benjamin Elder
a2ef871e58 remove failing test that depends on expired credential, remove credential, add TODOs
see: https://github.com/kubernetes/kubernetes/issues/130271
2025-07-28 16:31:06 -07:00
vr4manta
d8676a24cc Added NodeSelectors field to DriverDefinition 2025-07-22 08:21:08 -04:00
Jan Chaloupka
f240b3abf5 SchedulerPreemption [Serial] validates various priority Pods preempt expectedly with the async preemption: replace finalizers with preStop hook and TerminationGracePeriodSeconds
Finalizers do not work as expected when an informer with a field
selector is used. Any time a pod changing its state gets excluded by the
field selector a synthetic delete event is issues even though the pod
with a finalizer set is still present. Thus, making the scheduler
schedule the high and medium priority pods before any of the low
priority pod finalizers is removed. Instead, rely on preStop hook and
TerminationGracePeriodSeconds to keep all low priority pods long enough
included by the field selector so all high priority pods can set their
.status.nominatedNodeName field.

Also, update the check for how many medium priority pods are expected to
be scheduled. Each node can accept 10 pods of the given extended
resources. Given there's 5 high priority created per node, there's
always 5 times number of nodes spots left for the medium priority pods.
2025-05-14 16:23:46 +02: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
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
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
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
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
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
Dan Winship
10cd54bee4 Streamling the node/zone-picking logic 2025-03-24 18:47:12 -04:00
Dan Winship
bc81a860b0 Abstract the logic of the TrafficDistribution test
Split the logic of creating the clients and the servers apart from the
logic of checking which clients connect to which servers. Add some
extra complexity to support additional use cases (like multiple
endpoints on the same node).
2025-03-24 18:47:10 -04:00
Dan Winship
b1a0fea4c6 Remove a level of indentation in the TrafficDistribution e2e
(No other changes to the code)
2025-03-24 18:46:50 -04:00
Dan Winship
8f7bb964de TrafficDistribution e2e cleanups
Remove endpointSlicesHaveSameZoneHints check. We are testing that
connections end up at the right endpoints. We don't need to validate
_why_ they go to the right endpoints, which is already tested by other
tests anyway. (Also, validating the hints becomes more complicated in
the same-node case, where there may or may not also be same-zone hints
depending on cluster configuration.)

Remove DeferCleanup calls; we don't need to delete anything manually
because namespaced resources will automatically be deleted when the
test case's namespace is deleted.

Remove a setting of pod.NodeName that was redundant with
e2epod.SetNodeSelection().
2025-03-24 18:46:28 -04:00
Sreeram
f035e37c4b Added e2e test and fixed existing pod test 2025-03-25 02:05:30 +05:30
Jean-Marc François
4db8e8cc1d Add configurable tolerance e2e test. 2025-03-21 18:48:38 -04:00
Kubernetes Prow Robot
dd43c3d29d Merge pull request #130953 from tallclair/ippr-e2e
Run in-place resize tests in default CI jobs
2025-03-21 12:18:31 -07:00
Kevin Hannon
a237f429fc Revert "Separate SeparateDiskTests from eviction" 2025-03-21 12:29:30 -04:00
Kubernetes Prow Robot
f2d8eb036f Merge pull request #130959 from tallclair/ippr-tests
De-flake infeasible resize test
2025-03-21 00:54:31 -07:00
carlory
a9526f6c7e add comment to the CPUManager feature label
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-21 10:42:32 +08:00
Tim Allclair
16f5fe6a26 Fix infeasible resize test 2025-03-20 19:17:13 -07:00