Commit Graph

28564 Commits

Author SHA1 Message Date
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
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
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
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
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
rbiamru
6e574cabdd test/e2e_node: mark MirrorPod update tests as [NodeConformance] 2025-10-01 21:54:21 -04:00
Jordan Liggitt
af9facf7ba Fix passing runtime.Object to HaveValidResourceVersion check 2025-10-01 10:00:54 -04:00
Kubernetes Prow Robot
81d7612a53 Merge pull request #134330 from michaelasp/rvCmp
Add resource version comparison function in client-go along with conformance
2025-09-30 20:58:16 -07:00
Michael Aspinwall
9757d8d8ef Document 0 as a special case in RV comparison 2025-10-01 03:09:26 +00:00
Michael Aspinwall
84f85712be feat: Add matcher and conformance tests ensuring that RV is uint128 2025-10-01 00:01:50 +00:00
Kubernetes Prow Robot
6a687c5ddc Merge pull request #133339 from aojea/vap_servicecidr
ServiceCIDR ValidationAdmissionPolicy for implementing previous behavior
2025-09-30 16:20:15 -07:00
Michael Aspinwall
7c24e62d7c Add additional types for resource version comparison testing 2025-09-30 17:16:07 +00:00
Kubernetes Prow Robot
4a1558c545 Merge pull request #133967 from pohly/dra-allocator-selection
DRA: allocator selection
2025-09-30 08:24:18 -07:00
Patrick Ohly
68205ff40c DRA scheduler_perf: run with specific allocator implementations
For some packages (in particular the code DRA), all allocator implementations
can handle the testcases. Some other packages are for less stable features and
work with fewer implementations. Now all unit tests are run with all suitable
implementations, to increase code coverage.

Benchmarks are fixed to the most mature implementation because they would be
costly to run in more than one. When promoting an allocation implementation we
can do before/after comparisons to detect potential performance regressions.

The downside of this approach is that we need to remember to extend the list
of supported implementations when promoting features, otherwise testing will miss
some new supported implementation.
2025-09-30 18:19:57 +02:00
Patrick Ohly
5832c915ac scheduler_perf: apply feature gates in deterministic, alphabetical order
Without this, the effect of the following feature gate config would be random:

    featureGates:
      AllBeta: false
      SomeBetaFeature: true

That's random because the order of iterating of the map is randomized by Go and
`AllBeta: false` would disable `SomeBetaFeature` if (and only if) applied last.

Now by sorting alphabetically, AllAlpha/Beta come first in practice. It's not a
complete solution, some future feature gate name might come before it.
2025-09-30 16:53:39 +02:00
Humble Devassy Chirammal
723d1555a7 test: update CSI sidecar images to latest versions
Update CSI sidecar container images in test manifests:
- livenessprobe: v2.15.0 → v2.17.0
- csi-attacher: v4.8.0 → v4.10.0
- csi-provisioner: v5.1.0 → v5.3.0
- csi-resizer: v1.13.1 → v1.14.0

Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2025-09-30 18:50:08 +05:30
Kubernetes Prow Robot
7353b6a93d Merge pull request #134312 from alaypatel07/gc-resourceclaim-extendedresource
fix resource claims deallocation for extended resource when pod is completed
2025-09-30 01:38:20 -07:00
Michael Aspinwall
37fcfcd29e feat: Add conformance tests for all resources for comparable resource version 2025-09-29 23:32:07 +00:00
Kubernetes Prow Robot
e87a447ca2 Merge pull request #134327 from p0lyn0mial/watchlist-e2e-table-improve
test/e2e/apimachinery/watchlist: select only wellknown secrets for table test
2025-09-29 13:46:16 -07:00
Alay Patel
8a03067211 fix resource claims deallocation for extended resource when pod is completed
Signed-off-by: Alay Patel <alayp@nvidia.com>
2025-09-29 15:15:40 -04:00
Kubernetes Prow Robot
50cc9905b6 Merge pull request #132059 from jm-franc/configurable-tolerance-e2e-test
Add configurable tolerance e2e test.
2025-09-29 07:40:19 -07:00
Lukasz Szaszkiewicz
212a9c6a60 test/e2e/apimachinery/watchlist: select only wellknown secrets for table test 2025-09-29 13:36:38 +02:00
Ciprian Hacman
2b3f1877be Update NPD to v1.34.0 2025-09-27 19:57:47 +03:00
Jean-Marc François
d559a4afe7 Add configurable tolerance e2e test. 2025-09-26 10:58:20 -04:00