Commit Graph

16053 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
4a80270b30 Merge pull request #133012 from tallclair/mem-lim-decrease
[FG:InPlacePodVerticalScaling] Support reducing memory limits
2025-07-17 17:10:39 -07:00
Kubernetes Prow Robot
99f55ae4ef Merge pull request #132662 from gnufied/bump-recovery-feature-ga
Bump recovery feature ga
2025-07-17 17:10:25 -07:00
Kubernetes Prow Robot
6ad0ef4029 Merge pull request #132152 from natasha41575/complex-deferred-test
[FG:InPlacePodVerticalScaling] Add a more complex e2e test for deferred resizes
2025-07-17 15:58:31 -07:00
Kubernetes Prow Robot
3dd0e86190 Merge pull request #132821 from cici37/mapBeta
[KEP-3962]Promote MutatingAdmissionPolicy to Beta
2025-07-17 14:18:24 -07:00
Tim Allclair
75ae2d727a Add an E2E test for memory limit decrease usage check 2025-07-17 13:17:35 -07:00
Tim Allclair
2a9388c303 Move memory limit decrease e2e test to success cases 2025-07-17 13:17:35 -07:00
Natasha Sarkar
465f728141 use gomega.BeComparableTo instead of Equal for resource quantity check in resize test 2025-07-17 20:09:05 +00:00
Natasha Sarkar
f456a70bde use CreateBatch and MakeResizePatch 2025-07-17 19:19:05 +00:00
Natasha Sarkar
86bc1bf0a4 more complex e2e test for deferred resizes 2025-07-17 17:50:45 +00:00
Kubernetes Prow Robot
de97faf7ac Merge pull request #132598 from bart0sh/PR182-DRA-handle-serving-failures
DRA plugin: handle gRPC serving failures
2025-07-16 14:18:24 -07:00
Kubernetes Prow Robot
b61534d1c8 Merge pull request #132817 from p0lyn0mial/upstream-watchlist-table-none-server-bk
watchlist supports sending resources in Table format
2025-07-16 11:04:30 -07:00
Ed Bartosh
fc21d3f37d e2e: DRA: enable test plugin to cancel main context on error
Add a cancelMainContext field to ExamplePlugin and options. This
function allows the plugin to cancel an upper-level context when a
background error occurs. The HandleError method now calls this
function if it is set.

This enables DRA drivers to perform a graceful shutdown when a fatal
background error triggers context cancellation.
2025-07-16 15:49:41 +03:00
Ed Bartosh
1981c985b1 e2e: DRA: support test and public options
Refactor StartPlugin and related test helpers to accept a variadic
list of options of any type, allowing both public and test-specific
options to be passed.
2025-07-16 15:49:41 +03:00
Patrick Ohly
d44b737447 DRA: handle grpc.Server.Serve failures
Added an errHandler callback to startGRPCServer for handling errors.
Replaced direct logging of server failures with calls to the
provided error handler. This change ensures that errors are surfaced
and handled consistently.

Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>
2025-07-16 15:49:32 +03:00
Kubernetes Prow Robot
7871085906 Merge pull request #132295 from pohly/dra-version-skew
DRA: automated upgrade/downgrade testing
2025-07-15 22:44:23 -07:00
Kubernetes Prow Robot
20344f9aba Merge pull request #132345 from ffromani/e2e-podresourcesapi-labels
e2e: node: fix podresources API feature label
2025-07-15 13:16:29 -07:00
Kubernetes Prow Robot
f2bed63ca5 Merge pull request #131665 from carlory/fix-131645
deflake e2e tests: StatefulSet Non-retain StatefulSetPersistentVolume ClaimPolicy should delete PVCs after adopting pod (WhenScaled)
2025-07-15 08:24:23 -07:00
Francesco Romani
05e1c4b489 e2e: node: fix podresources API feature label
We want to fix and enhance lanes which exercise
the podresources API tests. The first step is to clarify
the label and made it specific to podresources API,
minimzing the clash and the ambiguity with the "PodLevelResources"
feature.

Note we change the label names, but the label name is backward
compatible (filtering for "Feature:PodResources" will still
get the tests). This turns out to be not a problem because
these tests are no longer called out explicitly in the lane
definitions. We want to change this ASAP.

The new name is more specific and allows us to clearly
call out tests for this feature in the lane definitions.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-07-15 14:15:00 +02:00
Patrick Ohly
c8ca9249ac DRA integration: add upgrade/downgrade testing with local-up-cluster.sh
The test brings up the cluster and uses that power to run through
an upgrade/downgrade scenario. Version skew testing (running tests while the cluster
is partially up- or downgraded) could be added.

The new helper code for managing the cluster is written so that it could be
used both in an integration test and an E2E
test. https://github.com/kubernetes/kubernetes/pull/122481 could make that a
bit easier in an E2E test, but is not absolutely required.

In contrast to running on a normal cluster, pods need no privileges.
Instead, the caller has to make sure that the test itself can write
into system directories used by the cluster.
2025-07-15 12:54:40 +02:00
Patrick Ohly
60e9316c0c DRA E2E: refactor helper code
The helper code is useful for a separate Ginkgo suite for upgrade/downgrade
testing. We don't want to import test/e2e/dra there because that would also
define additional tests.
2025-07-15 12:54:40 +02:00
Patrick Ohly
2e3228e2ca DRA E2E: support deploying driver on localhost
If we know that the test binary shares the filesystem with the cluster (for
example, when using local-up-cluster.sh), then we can avoid the whole
complicated portproxy solution and work directly with the paths on the
host.

Only works with suitable permissions! /var/lib/kubelet/plugins,
/var/lib/kubelet/plugin_registry, and /var/run/cdi must be writable.

portproxy remains the default because it automatically gains sufficient
permissions also when combined with local-up-cluster.sh.
2025-07-15 12:52:27 +02:00
Patrick Ohly
f381d73724 DRA E2E: retry exec of hostpathplugin
We can recover from exec failing, the portproxy code already retries port
forwarding.
2025-07-15 12:52:27 +02:00
Patrick Ohly
c2080e7e45 DRA E2E: support using ktesting
This is a DRA-specific stop-gap solution for using the E2E framework together
with ktesting. Long-term this should better land in the E2E framework itself.
2025-07-15 12:52:27 +02:00
Patrick Ohly
4977163860 DRA E2E: reduce port proxy verbosity
During upgrade/downgrade testing, errors are encountered while the apiserver is
down. This is normal and handled via retrying, so we don't need to be verbose.
2025-07-15 12:52:26 +02:00
Patrick Ohly
5721c927e6 DRA E2E: increase verbosity of resource claim controller
Can be done via -vmodule, albeit not precisely because other controllers
also have a controller.go file.
2025-07-15 12:52:26 +02: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
Lukasz Szaszkiewicz
9c0e65b085 test/apimachinery/watchlist: server supports sending resources in Table format 2025-07-15 10:11:23 +02:00
Cici Huang
a3ecea296c manual change 2025-07-15 01:44:13 +00:00
Kubernetes Prow Robot
3bab7bccd3 Merge pull request #132219 from BenTheElder/conformance-ordered
Promote OrderedNamespaceDeletion test to Conformance
2025-07-14 16:42:30 -07:00
Kubernetes Prow Robot
4ffb58f6d7 Merge pull request #132931 from pohly/dra-e2e-device-plugin
DRA E2E: test mixture of extended resources + ResourceClaim
2025-07-14 12:06:30 -07:00
Patrick Ohly
af249fb2e9 DRA E2E: test mixture of extended resources + ResourceClaim
This shows that a device plugin and DRA driver can be used together on the same
node.
2025-07-14 18:13:27 +02:00
Lukasz Szaszkiewicz
7d9eb2b3d0 test/apimachinery/watchlist: update tests that receive resources in Table format 2025-07-14 16:09:29 +02:00
Kubernetes Prow Robot
37a7addd0c Merge pull request #132264 from HirazawaUi/promote-to-conformance
Promote RelaxedEnvironmentVariableValidation test to Conformance #132219
2025-07-12 11:31:28 -07:00
Kubernetes Prow Robot
34df3b5776 Merge pull request #132019 from danwinship/endpointslice-only-conformance
Promote two EndpointSlice e2e tests to Conformance
2025-07-11 18:15:27 -07:00
Natasha Sarkar
237fbde8b1 clean up e2e test and sorting code 2025-07-10 22:30:21 +00:00
Natasha Sarkar
6052c569db prioritize resize requests by priorityClass and qos class 2025-07-10 18:01:15 +00:00
Hemant Kumar
c126870ebc Bump RecoverVolumeExpansionFailure to GA 2025-07-10 12:19:31 -04:00
Kubernetes Prow Robot
eace307651 Merge pull request #132795 from tallclair/resize-patch
Avoid manually writing resize patches for pod resize E2Es
2025-07-09 12:05:27 -07:00
Kubernetes Prow Robot
93bb3858f3 Merge pull request #132845 from ylink-lfs/chore/int64ptr_removal
chore: replace int64ptr with ptr.To
2025-07-09 10:11:34 -07:00
Patrick Ohly
2dd07e9242 DRA E2E: ResourceSlice Controller test flake
There was one flake:

  expected pod to be pod is scheduled, got instead:
     ...
     status:
          conditions:
          - lastProbeTime: null
            lastTransitionTime: "2025-07-06T12:08:54Z"
            message: 'running "DynamicResources" filter plugin: pool network-attached is invalid:
              duplicate device name dev-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0000'

The root cause was that the test produced device names which were unique within
their slice, but not within the pool. This didn't matter for the test itself,
but for tests running concurrently of after it, because those slices were also
not cleaned up properly.

Timing in pull-kubernetes-e2e-gce also was different.
2025-07-09 15:56:06 +02:00
ylink-lfs
26f54e5c0e chore: replace int64ptr with ptr.To 2025-07-09 21:35:45 +08:00
Kubernetes Prow Robot
83fb86e188 Merge pull request #132740 from adrianmoisey/e2e-test-single-ip
Loop over all IP address from each node in e2e test
2025-07-09 05:05:27 -07:00
Kubernetes Prow Robot
9e204ba03c Merge pull request #132708 from yashsingh74/conntrack-test
cleanup conntrack entries test for UDP service
2025-07-08 21:51:27 -07:00
Kubernetes Prow Robot
09bb45816a Merge pull request #132468 from haircommander/status-retry
e2e: retry getting status on restart policy tests
2025-07-08 18:21:28 -07:00
Kubernetes Prow Robot
b8450dc451 Merge pull request #132806 from PatrickLaabs/132749-toPtr
chore: replacement of toPtr helper functions with ptr packge
2025-07-08 14:33:40 -07:00
Kubernetes Prow Robot
0370a809f3 Merge pull request #132819 from ylink-lfs/chore/uint64ptr_usage_removal
chore: remove residual uint64ptr usage with k8s.io/util/ptr
2025-07-08 11:45:33 -07:00
Kubernetes Prow Robot
9fbd2dae14 Merge pull request #132339 from adrianmoisey/relaxed-validation-for-services-names
KEP-5311 Relaxed validation for Services names
2025-07-08 09:03:26 -07:00
yashsingh74
1a62ade742 cleanup conntrack entries test for UDP service
Signed-off-by: yashsingh74 <yashsingh1774@gmail.com>
2025-07-08 21:20:43 +05:30
ylink-lfs
30a3bfdbcb chore: remove residual uint64ptr usage with ptr package 2025-07-08 22:20:16 +08:00