Commit graph

28586 commits

Author SHA1 Message Date
Kubernetes Prow Robot
db63a581ca
Merge pull request #134366 from tallclair/feature-gates-test
Set multiple feature gates simultaneously in test
2025-10-13 13:11:33 -07:00
Kubernetes Prow Robot
b6eb2dd747
Merge pull request #133993 from danwinship/endpoints-slices-e2e-split
clean up/reorganize endpoints conformance tests, split Endpoints/EndpointSlices
2025-10-13 08:13:36 -07:00
Kubernetes Prow Robot
260ea59ff5
Merge pull request #134293 from bart0sh/PR203-migrate-devicemanager-to-contextual-logging
Migrate device manager to contextual logging
2025-10-13 07:23:44 -07:00
Kubernetes Prow Robot
ee1ff4866e
Merge pull request #134479 from pohly/dra-device-taint-no-execute-toleration-fix
DRA device taints: fix toleration of NoExecute
2025-10-10 00:47:00 -07:00
Kubernetes Prow Robot
0a4651c991
Merge pull request #134495 from borg-land/cos-121-gpu
bump cos-gpu-installer to support cos 121
2025-10-09 13:47:00 -07:00
Kubernetes Prow Robot
628845b567
Merge pull request #134456 from gnufied/fix-e2e-modify-volume
With new changes we will also have a VolumeModifying condition
2025-10-09 11:31:02 -07:00
Kubernetes Prow Robot
b393d87d16
Merge pull request #134440 from pohly/e2e-volumebinding-watch-fix
integration test volume: fix restarting of watch
2025-10-09 03:05:09 -07:00
Kubernetes Prow Robot
6c258fa74b
Merge pull request #134376 from bertinatto/update-hostpathplugin-image-dra-manifest
Update hostpathplugin image version in DRA test driver manifest
2025-10-09 01:05:00 -07:00
upodroid
4f7e9ff1ef bump cos-gpu-installer to support cos 121 2025-10-09 10:56:29 +03:00
Kubernetes Prow Robot
51e35e61ce
Merge pull request #133870 from pohly/build-data-race-detection
build: also support KUBE_RACE for test binaries
2025-10-08 12:57:01 -07:00
Patrick Ohly
6f51446802 DRA device taints: fix toleration of NoExecute
As usual, consumers of an allocated claim react to the information stored in
the status. In this case, the scheduler did not copy the tolerations into the
status and as a result a pod with a toleration for NoExecute got scheduled and
then immediately evicted.

Some additional logging gets added to make the handling easier to track in the
eviction controller. Example YAMLs allow reproducing the use case manually.
2025-10-08 13:13:47 +02:00
Patrick Ohly
9702a2dca2 E2E framework: enable data race detection only if needed
When building the test binary without race detection, we don't
need the post-processing of the JUnit file because it cannot
contain data race reports. This can be done via build tags.
2025-10-08 08:45:21 +02:00
Dan Winship
c189e9d82f Split Endpoints controller and EndpointSlice controller conformance tests 2025-10-07 17:32:53 -04:00
Dan Winship
7b7145a594 Update kubernetes.default endpoints test a bit
Inline the endpointSlicesEqual() method into the test, since despite
its generic-sounding name, it made assumptions specific to this test.

Also, port to generic sets.
2025-10-07 17:32:36 -04:00
Dan Winship
e627b3b2bf Move some network conformance tests around.
Move the Endpoints API test from endpointslice.go to endpoints.go

Move the "kubernetes.default Service exists" and "kubernetes.default
endpoints exist" tests to apiserver.go, since (unlike the rest of
service.go/endpointslice.go) they aren't testing the behavior of the
Service/EndpointSlice/Endpoints APIs.

(No code changes, but fixed a typo in a comment.)
2025-10-07 17:32:34 -04:00
Dan Winship
d46f15bd12 Fix some linter errors before splitting out code
(In particular, fix the wait.PollImmediate calls even in the code
that's staying here, not just the code that's moving.)
2025-10-07 17:32:32 -04:00
Dan Winship
07959fd168 Remove redundant test of "empty EndpointSlice for Service with no Pods"
This was being checked by two different conformance tests.
2025-10-07 17:32:27 -04:00
Dan Winship
ff83235f35 Fix up EndpointSlice conformance test descriptions 2025-10-07 17:32:25 -04:00
Kubernetes Prow Robot
7891d35ccf
Merge pull request #134399 from aojea/slice_headless
add integration test for endpoint and endpointslice controller labels propagation and headless services
2025-10-07 13:35:09 -07:00
Kubernetes Prow Robot
3a53784ecb
Merge pull request #133876 from kei01234kei/make_v1_version_fist_priotiry_inresource
make v1 resource version first priority in resource
2025-10-07 08:55:02 -07:00
Hemant Kumar
01264d3970 With new changes we will also have a VolumeModifying condition
Fix e2e tests to take that into account
2025-10-07 10:31:29 -04:00
Patrick Ohly
13cd40d718 E2E volume: fix restarting of watch
Presumably
https://github.com/kubernetes/kubernetes/pull/127260/files#r2405215911
was meant to continue polling after a watch was closed by the apiserver.
This is something that can happen under load.

However, returning the error has the effect that polling stops.
This can be seen as test failures when testing with race
detection enabled:

    persistent_volumes_test.go:1101: Failed to wait for all claims to be bound: watch closed
2025-10-07 10:22:35 +02:00
Kubernetes Prow Robot
da05e3ccc7
Merge pull request #134369 from rbiamru/add-nodeconformance-mirror-pod
test/e2e_node: mark MirrorPod update tests as [NodeConformance]
2025-10-06 11:21:08 -07:00
Kubernetes Prow Robot
f74a7458d9
Merge pull request #134173 from toVersus/test/deflake-sidecar-e2e
deflake e2e: ensure pod with sidecars restarts in correct order after node reboot
2025-10-06 11:21:00 -07:00
Antonio Ojea
2b220dffa7 add integration test for endpointslice controller headless services 2025-10-06 13:39:12 +00:00
Kubernetes Prow Robot
37f067778e
Merge pull request #134384 from tchap/kubectl-config-set-context-shorthand-namespace
kubectl config set-context: Add -n flag
2025-10-06 03:19:06 -07:00
Ondra Kupka
d03fab555f kubectl config set-context: Add -n flag
This is simply a shorthand for --namespace as with other commands.
2025-10-06 11:31:26 +02:00
HirazawaUi
f9a893be37 Fix incorrect error messages 2025-10-06 00:42:21 +08:00
Kubernetes Prow Robot
ab7e45228f
Merge pull request #134400 from macsko/disable_async_api_calls_feature_gate
Disable SchedulerAsyncAPICalls feature gate due to a known regression in v1.34
2025-10-03 14:22:58 -07:00
Kubernetes Prow Robot
4db43d1321
Merge pull request #134251 from joshjms/update-etcd-3.6.5
etcd: Update etcd to v3.6.5
2025-10-03 07:00:58 -07:00
Maciej Skoczeń
1137d51b35 Disable SchedulerAsyncAPICalls feature gate due to a known regression 2025-10-03 13:02:02 +00:00
Kubernetes Prow Robot
389507c723
Merge pull request #134294 from ania-borowiec/test_for_rollback
Fix for incorrect activation of preemptor pod waiting for deletion of victim, plus integration test verifying the fix
2025-10-03 03:38:58 -07:00
joshjms
070d4c1846 bump etcd to v3.6.5
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-10-03 18:19:15 +08:00
Ania Borowiec
7c59672213
Fix in code and integration test that verifies that when victim pod is stuck in binding, preemptor pod remains waiting in unschedulable queue until deletion of the victim pod is completed 2025-10-03 09:42:50 +00:00
Kubernetes Prow Robot
0dd78f632e
Merge pull request #133747 from pohly/dra-e2e-crud-conformance
DRA: CRUD conformance tests
2025-10-02 20:22:56 -07:00
Kubernetes Prow Robot
5c73384abb
Merge pull request #134283 from natasha41575/ippr-tests
[InPlacePodVerticalScaling] refactor and increase coverage for pod resize tests
2025-10-02 17:39:10 -07:00
Kubernetes Prow Robot
5da3bd6eb5
Merge pull request #134127 from aojea/apiserver_noproxy
integration test: webhook proxy behavior
2025-10-02 17:38:58 -07:00
Antonio Ojea
0b0a5974f8 integration test: webhook proxy behavior
adds a new integration test to verify that the API server's egress
to admission webhooks correctly respects the standard `HTTPS_PROXY`
and `NO_PROXY` environment variables.

It adds a new test util to implement a Fake DNS server that allows
to override DNS resolution in tests, specially useful for integration
test that can only bind to localhost the servers, that is ignored
by certain functionalities.
2025-10-02 22:31:08 +00:00
Benjamin Elder
52dec274b3 add TODO to migrate when new metrics mature and old metrics are deprecated 2025-10-02 15:03:29 -07:00
Benjamin Elder
7c529f25f4 add apiserver_validation_declarative_validation_panic_total invariant 2025-10-02 15:00:44 -07:00
Benjamin Elder
84ce0f57f2 add test to verify invariants are fully specified 2025-10-02 14:57:49 -07:00
Benjamin Elder
41ae5cdf4b check invariant metrics after e2e tests 2025-10-02 14:08:08 -07:00
Natasha Sarkar
748510b8ee refactor and increase coverage for pod resize tests 2025-10-02 20:47:40 +00:00
Kubernetes Prow Robot
a412a15109
Merge pull request #134304 from humblec/volume-fixes
Update CSI sidecar container images in test manifest
2025-10-02 13:00:57 -07:00
Patrick Ohly
f95d531b0a DRA: CRUD conformance tests
Promoting real tests turned out to be harder than expected (should be rewritten
to be self-contained, additional reviews, etc.).

They would not achieve 100% endpoint+operation coverage because real tests only
use some of the operations. Therefore each API type has to be covered with
CRUD-style tests which only exercise the apiserver, then maybe additional
functional tests can be added later (depending on time and motivation).

The machinery for testing different API types is meant to be reusable, so it
gets added in the new e2e/framework/conformance helper package.
2025-10-02 17:43:33 +02:00
Patrick Ohly
545526cfe0 DRA E2E: only check ResourceClaims in the test namespace
That was the original intent, but the implementation then ended up checking
ResourceClaims in all namespaces. Depending on timing this was merely
misleading (showing ResourceClaim changes from a different test running in
parallel), but with upcoming CRUD tests which intentionally set an allocation
result without a finalizer it breaks the non-CRUD tests when they check the
those CRUD ResourceClaims.
2025-10-02 16:07:48 +02:00
Patrick Ohly
2ac9ff1c1f test: format unstructured as YAML
It's a nested map which looks a lot nicer as YAML, in particular
when it represents a Kubernetes object.

Unit+integration tests using ktesting+gomega and E2E tests benefit from this
change.
2025-10-02 16:07:48 +02:00
Fabio Bertinatto
940a2a7f07 Update hostpathplugin image version in DRA test driver manifest
Update image from v1.7.3 to v1.16.1 to avoid pulling multiple
in CI.
2025-10-02 08:25:46 -03:00
Kubernetes Prow Robot
8ac5701d3a
Merge pull request #134052 from Jefftree/cle-tests-rename
Rename CLE test files
2025-10-02 00:11:03 -07:00
Kubernetes Prow Robot
c7f910ed1f
Merge pull request #133762 from natasha41575/expandQuotaTests
[InPlacePodVerticalScaling] Expand coverage for resourceQuota and limitRanger e2e tests
2025-10-02 00:10:56 -07:00