Commit graph

29423 commits

Author SHA1 Message Date
Your Name
66a7bd6de6 Fix TestEtcdStoragePath for MutatingAdmissionPolicy emulation
This commit fixes a failure in TestEtcdStoragePath when emulating version 1.34. The test failure was caused by the removal of alpha versions from the test data during emulation, which prevented 'storageVersionAtEmulationVersion' from correctly resolving the storage version for MutatingAdmissionPolicy (which relies on v1alpha1 in this compatibility mode).

Changes:

- Updated GetEtcdStorageDataServedAt in test/integration/etcd/data.go to pass a full copy of etcdStorageData (including alpha versions) to storageVersionAtEmulationVersion.

- Added ExpectedGVK to MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding in test/integration/etcd/data.go to ensure correct version resolution during tests.

- Removed explicit storage version overrides for MutatingAdmissionPolicy in pkg/kubeapiserver/default_storage_factory_builder.go as part of the graduation process.
2026-02-18 18:33:22 +00:00
Lalit Chauhan
4c13c220f5 Add conformance tests for MutatingAdmissionPolicy 2026-02-18 18:33:22 +00:00
Lalit Chauhan
962f5fe9ba Fix integration tests 2026-02-18 18:33:22 +00:00
Lalit Chauhan
0d5bdaedc9 promote MutatingAdmissionPolicy to v1: update plugin implementation
- Update MutatingAdmissionPolicy plugin to use v1 types.
2026-02-18 17:51:43 +00:00
Kubernetes Prow Robot
d820c046f5
Merge pull request #137090 from adrianmoisey/adrian-hpa
Update HPA Configurable Tolerance e2e test feature
2026-02-18 18:13:47 +05:30
Kubernetes Prow Robot
0ca5cba140
Merge pull request #135965 from kannon92/kep-5440-feature-gate-enable-e2e-test
set KEP-5440 to enabled by default
2026-02-18 18:13:38 +05:30
Kubernetes Prow Robot
8051281a28
Merge pull request #135502 from Argh4k/binding-pods
Preempt pods in prebind phase without delete calls.
2026-02-18 17:23:37 +05:30
Kubernetes Prow Robot
5fa8c7f7e6
Merge pull request #137081 from guettli/fallback-to-external-ip-in-tests
Fallback to ExternalIP in tests.
2026-02-18 15:11:37 +05:30
Maciej Wyrzuc
4a326b0196 Preempt pods in prebind phase without delete calls.
This change allows the preemption to preempt a pod that is not yet
bound, but is already in prebind phase) without issuing a delete call to the
apiserver.

Pods are added to a special map of pods currently in prebind phaseand
preemption can cancel the context that is used for given pod prebind phase ,
allowing it to gracefully handle error in the same manner as errors
coming out from prebind plugins. This results in pods being pushed to
backoff queue, allowing them to be rescheduled in upcoming scheduling
cycles.
2026-02-18 09:00:23 +00:00
Kubernetes Prow Robot
5e8bc18171
Merge pull request #137076 from atilsensalduz/chore/hpa-e2e-update-deprecated-apis-to-current
chore(test/autoscaling): update HPA e2e DynamicResourceConsumer to use current APIs
2026-02-18 14:05:38 +05:30
Kubernetes Prow Robot
920d29b10f
Merge pull request #136154 from bhope/metrics-beta-component-base
Promote component-base metrics to beta
2026-02-18 05:25:38 +05:30
Prathamesh Bhope
9c3fabadde component-base/metrics: graduate metrics to stable: kubernetes_build_info, rest_client_requests_total, rest_client_request_duration_seconds, running_managed_controllers
address review nits
2026-02-17 14:45:25 -08:00
Kubernetes Prow Robot
1bb4d4f7b3
Merge pull request #137057 from iPraveenParihar/e2e/fix-flaky-snapshot-metadata-test
e2e: fix snapshot metadata test flakes by removing in-test CRD creation
2026-02-18 00:23:53 +05:30
Kubernetes Prow Robot
aaa8fe96de
Merge pull request #136951 from zylxjtu/master
Add the windows 2025 support for some e2e test images
2026-02-18 00:23:46 +05:30
Adrian Moisey
3014499d20
Update HPA Configurable Tolerance e2e test feature
This should be "HPA"
2026-02-17 20:11:13 +02:00
Kubernetes Prow Robot
e7e9eebc02
Merge pull request #137088 from soltysh/logs_timeout
Bump logs e2e timeout to 3s to match log generator
2026-02-17 23:31:55 +05:30
Praveen M
0e6bf008b8 e2e: fix snapshot metadata test flakes by removing in-test CRD creation
Signed-off-by: Praveen M <m.praveen@ibm.com>
2026-02-17 22:17:16 +05:30
Kubernetes Prow Robot
c9020bef5a
Merge pull request #135732 from pohly/dra-upgrade-downgrade-device-taints
DRA: upgrade/downgrade device taints
2026-02-17 22:13:42 +05:30
Thomas Güttler
8e7eb56023 Fallback to ExternalIP in tests.
Make test code behave like [GetNodeHostIPs()](https://pkg.go.dev/k8s.io/kubernetes/pkg/util/node#GetNodeHostIPs)

First try InternalIP, then ExternalIP.
2026-02-17 17:24:08 +01:00
Maciej Szulik
76ba5f101c
Bump logs e2e timeout to 3s to match log generator
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-02-17 17:11:09 +01:00
Patrick Ohly
ff551f387f DRA E2E: disarm footgun in PodExternal
The implicit matching of the ResourceClaim name to ExternalClaim was
convenient (no need to specify the parameter) but did go wrong in integration
testing where there are multiple calls to ExternalClaim.
2026-02-17 16:35:36 +01:00
Patrick Ohly
aa3f79d4c9 DRA upgrade/downgrade: add DeviceTaints test
This automatically tests a few scenarios across cluster upgrade/downgrade.
2026-02-17 16:35:36 +01:00
Patrick Ohly
e53d93a6bc DRA integration: fix data race
Gomega matchers cannot be used concurrently, they get mutated. Each user must
get its own separate instance.

    WARNING: DATA RACE
    Write at 0x00c0195da678 by goroutine 322445:
      github.com/onsi/gomega/matchers.(*AndMatcher).Match()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/matchers/and.go:18 +0x44
      github.com/onsi/gomega/internal.(*AsyncAssertion).pollMatcher()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:387 +0xbe
      github.com/onsi/gomega/internal.(*AsyncAssertion).match()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:415 +0x47b
      github.com/onsi/gomega/internal.(*AsyncAssertion).Should()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:145 +0xc4
      k8s.io/kubernetes/test/integration/dra.testShareResourceClaimSequentially.func3()
          /home/prow/go/src/k8s.io/kubernetes/test/integration/dra/resourceclaim_test.go:104 +0x361
      k8s.io/kubernetes/test/integration/dra.testShareResourceClaimSequentially.func5()
          /home/prow/go/src/k8s.io/kubernetes/test/integration/dra/resourceclaim_test.go:139 +0xa1
      sync.(*WaitGroup).Go.func1()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.7.linux-amd64/src/sync/waitgroup.go:239 +0x5d

    Previous write at 0x00c0195da678 by goroutine 322438:
      github.com/onsi/gomega/matchers.(*AndMatcher).Match()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/matchers/and.go:18 +0x44
      github.com/onsi/gomega/internal.(*AsyncAssertion).pollMatcher()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:387 +0xbe
      github.com/onsi/gomega/internal.(*AsyncAssertion).match()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:415 +0x47b
      github.com/onsi/gomega/internal.(*AsyncAssertion).Should()
          /home/prow/go/src/k8s.io/kubernetes/vendor/github.com/onsi/gomega/internal/async_assertion.go:145 +0xc4
      k8s.io/kubernetes/test/integration/dra.testShareResourceClaimSequentially.func3()
          /home/prow/go/src/k8s.io/kubernetes/test/integration/dra/resourceclaim_test.go:104 +0x361
      k8s.io/kubernetes/test/integration/dra.testShareResourceClaimSequentially.func5()
          /home/prow/go/src/k8s.io/kubernetes/test/integration/dra/resourceclaim_test.go:139 +0xa1
      sync.(*WaitGroup).Go.func1()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.7.linux-amd64/src/sync/waitgroup.go:239 +0x5d
2026-02-17 14:38:25 +01:00
Kubernetes Prow Robot
23fc0bff62
Merge pull request #137049 from pohly/dra-scheduler-perf-failures
DRA scheduler_perf: avoid race between assume cache and Update calls
2026-02-17 16:37:04 +05:30
atilsensalduz
7e3bd4cfa5 chore(test/autoscaling): replace RC with ReplicaSet and update deprecated API versions in HPA e2e
Signed-off-by: atilsensalduz <atil.sensalduz@gmail.com>
2026-02-17 14:01:02 +03:00
Kubernetes Prow Robot
f9c9f03b05
Merge pull request #136618 from macsko/workload_scheduling_cycle
KEP-4671: Introduce Workload Scheduling Cycle
2026-02-17 15:21:04 +05:30
Maciej Skoczeń
6233b25907 Introduce Workload Scheduling Cycle
Add integration tests for gang and basic policy workload scheduling

Add more tests for cluster snapshot

Proceed to binding cycle just after pod group cycle

Enforce one scheduler name per pod group, rename workload cycle to pod group cycle

Add unit tests for pod group scheduling cycle

Run ScheduleOne tests treating pod as part of a pod group

Rename NeedsPodGroupCycle to NeedsPodGroupScheduling

Observe correct per-pod and per-podgroup metrics during pod group cycle

Rename pod group algorithm status to waiting_on_preemption

Mention forgotAllAssumedPods is a safety check
2026-02-17 09:02:32 +00:00
Kubernetes Prow Robot
c99adcec1a
Merge pull request #136799 from omerap12/external-metrics-e2e
Add e2e test for external metrics
2026-02-16 19:44:02 +05:30
Patrick Ohly
ca0433bdb2 DRA scheduler_perf: avoid race between assume cache and Update calls
A updated claim can only be stored in the assume cache if the cache already
contains a copy of it. That wasn't guaranteed because the update operations
where based on listing existing claims without going through the cache.

To avoid the race, we can ensure that the assume cache is up-to-date before
we start updating claims and the cache. This is simpler than retrying the
assume call.
2026-02-16 13:47:39 +01:00
Kubernetes Prow Robot
9210644161
Merge pull request #136501 from adrianmoisey/remove-CustomMetricsAutoscaling
Remove unused variable CustomMetricsAutoscaling
2026-02-15 21:23:58 +05:30
Kubernetes Prow Robot
ec2c7739bc
Merge pull request #135808 from tico88612/cleanup/SeparateCacheWatchRPC
SeparateCacheWatchRPC LockToDefault set true
2026-02-13 08:53:59 +05:30
Kubernetes Prow Robot
1132395d4a
Merge pull request #136793 from yongruilin/master_vg-strategy-alpha
KEP-5073:  Declarative Validation Lifecycle Update
2026-02-13 07:16:00 +05:30
yongruilin
0c679cea68 Introduce DeclarativeValidationBeta and deprecate Takeover gate
This change introduces the DeclarativeValidationBeta feature gate in v1.36
as the global safety switch for Beta-stage validation rules and marks
DeclarativeValidationTakeover as deprecated.

Following KEP-5073.
2026-02-13 00:54:11 +00:00
Kubernetes Prow Robot
7f13600dad
Merge pull request #136400 from vinayakankugoyal/gitrepo
KEP:5040 Lock gitRepo Volume Driver to disabled.
2026-02-13 03:58:10 +05:30
Kubernetes Prow Robot
03da245585
Merge pull request #134827 from michaelasp/rvStore
Add Resource Version query and Bookmarks to thread safe store
2026-02-13 03:58:00 +05:30
Kubernetes Prow Robot
d7f6f91dae
Merge pull request #135820 from pohly/dra-sharing-claim-sequentially-test
DRA: sharing claim sequentially test
2026-02-13 01:50:09 +05:30
Kubernetes Prow Robot
b6eb3d0546
Merge pull request #136970 from iPraveenParihar/e2e/snapshot-metadata-typo-fixes
e2e: fix typos in snapshot-metadata testfile
2026-02-12 23:30:02 +05:30
Kubernetes Prow Robot
5b63a8c68e
Merge pull request #136921 from dims/dump-from-utils
Move dump package from apimachinery to k8s.io/utils
2026-02-12 22:28:10 +05:30
Kubernetes Prow Robot
150247a304
Merge pull request #136981 from soltysh/simplify_logs_e2e
Add slight timeout after pods are running, and drop duplicate log lines checks
2026-02-12 20:30:09 +05:30
Carlos Panato
634d1f00ab
Bump images and versions to go 1.25.7 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2026-02-12 14:04:23 +01:00
Maciej Szulik
c2bf995e96
Add 1s timeout after pods get ready, to ensure log generator produces output
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-02-12 13:36:27 +01:00
Maciej Szulik
6e6107c9e9
Cleans up the test, removing duplicate checks and making code more
readable

Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-02-12 13:35:23 +01:00
Davanum Srinivas
550cc8645b
Move dump package from apimachinery to k8s.io/utils
Replace all imports of k8s.io/apimachinery/pkg/util/dump with
k8s.io/utils/dump across the repo. The apimachinery dump package
now contains deprecated wrapper functions that delegate to
k8s.io/utils/dump for backwards compatibility.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-12 07:34:19 -05:00
Patrick Ohly
0cb57b97e7 DRA integration: test sharing a claim sequentially
This used to be an E2E test, but it turned out to be too slow and unreliable
and therefore got removed. As an integration test we have a bit better control
over the environment, so it should be possible to avoid the same flakes.

Some of the slowness comes from pods entering backoff. Maybe this is an
opportunity for future improvements.

To support this tests, the ResourceClaim controller is needed. The framework
can start it on demand now, similar to how the scheduler was handled already.
2026-02-12 12:33:22 +01:00
Patrick Ohly
21bf85de15 DRA E2E: support usage without real nodes
This enables usage in test/integration/dra:
- "deploying" a driver merely sets up the usual slices and class
- created pods get force-deleted
2026-02-12 12:33:22 +01:00
Praveen M
ab6221517f e2e: fix typos in snapshot-metadata testfile
Signed-off-by: Praveen M <m.praveen@ibm.com>
2026-02-12 10:15:05 +05:30
Kevin Hannon
94cc00aebb set KEP-5440 to enabled by default and add two e2e tests confirming behavior 2026-02-11 23:17:21 -05:00
Kubernetes Prow Robot
89900005ee
Merge pull request #136913 from jsafrane/bump-csi-driver-host-path
Update the csi-driver-host-path version to 1.17.1
2026-02-12 09:32:01 +05:30
Michael Aspinwall
9c6ac550ef Add rv query to store 2026-02-12 00:41:25 +00:00
Kubernetes Prow Robot
54489c1a33
Merge pull request #136729 from ahmedtd/podcert-pkcs10
Pod Certificates: Add StubPKCS10Request; migrate in-tree usages
2026-02-12 04:43:59 +05:30