Commit Graph

135675 Commits

Author SHA1 Message Date
Mark Liu
20696e1f89 Skip events for multi-object kubectl describe
Default ShowEvents=false when describing multiple objects and
the user has not explicitly set --show-events. Single-object
describe unchanged. Applied in both Run() and
DescribeMatchingResources() using a value copy of
DescriberSettings.

Signed-off-by: Mark Liu <mark@prove.com.au>
2026-03-12 17:47:00 +11:00
Kubernetes Prow Robot
b08fa0cdf1 Merge pull request #136039 from lalitc375/map-graduation
Promote MutatingAdmissionPolicy to v1 (GA)
2026-02-19 03:05:39 +05:30
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
Your Name
0af21eae1e put replacement for v1beta1 MutatingAdmssionPolicy 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
cb52554c88 Generate OpenAPI spec for mutatingAdmissionPolicy 2026-02-18 18:33:17 +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
Lalit Chauhan
b7c4f21d41 promote MutatingAdmissionPolicy to v1: api wiring and validation
- Register v1 MutatingAdmissionPolicy and Binding in apiserver storage.
- Add defaults and validation for v1 types.
- Update storage version hash data.
- Add API testdata.
2026-02-18 17:51:43 +00:00
Lalit Chauhan
5505c010fd promote MutatingAdmissionPolicy to v1: add types and generated code 2026-02-18 17:51:38 +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
4edf082c40 Merge pull request #136895 from youwalther65/csr-create
Add CertificateSigningRequest create log entry for default kubelet debug level V2
2026-02-18 09:23:37 +05:30
Kubernetes Prow Robot
d392136d18 Merge pull request #137063 from richabanker/mvp-metrics
Add group, version, resource labels to alpha metric apiserver_rerouted_request_total
2026-02-18 07:07:39 +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
Richa Banker
6cdd9e6bab Add group, version, resource labels to alpha metric apiserver_rerouted_request_total 2026-02-17 12:52:20 -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
Kubernetes Prow Robot
338a3bcef8 Merge pull request #136254 from tosi3k/extend-postfilter
Extend PostFilterResult with a list of victim Pods
2026-02-18 00:23:37 +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
Kubernetes Prow Robot
4540abb5d8 Merge pull request #136704 from Ignoramuss/optionalorrequired-authentication
api: enable optionalorrequired linter for authentication API
2026-02-17 23:31:47 +05:30
Kubernetes Prow Robot
09259d3dff Merge pull request #136689 from kfess/bugfix/windows-plugin
Fix kubectl plugin list overshadow detection on Windows
2026-02-17 23:31:39 +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
Antoni Zawodny
25d93e1f8e Extend PostFilterResult with a list of victim Pods 2026-02-17 16:50:20 +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
Kubernetes Prow Robot
7ed7104d27 Merge pull request #137079 from pohly/dra-integration-data-race
DRA integration: fix data race
2026-02-17 19:57:03 +05:30
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
d3a1be8586 Merge pull request #136990 from cpanato/update-rules
Update publishing rules
2026-02-17 19:07:03 +05:30
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
Carlos Panato
a1736c1595 update go in publishing rules
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2026-02-17 09:51:58 +01:00
Kubernetes Prow Robot
2fb84cfed3 Merge pull request #137052 from skitt/golangci-lint-2.9.0
Bump to golangci-lint 2.9.0
2026-02-17 00:58:01 +05:30
Stephen Kitt
3d1e90f95a Bump to golangci-lint 2.9.0
bloop was disabled because of its impact on small benchmarks (see
267fc6b81a
for details), this removes it from the disabled entries.

stringscut was introduced in x/tools 0.40.0 and is disabled for
existing code.

ginkgolinter's Success matcher check doesn't know about TContext, so
it's disabled for k/k.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2026-02-16 15:45:22 +01:00
Kubernetes Prow Robot
31bf3ed48b Merge pull request #137019 from olamilekan000/add-a-show-secret-flag-in-diff-command
add show-secret flag to the diff command
2026-02-16 19:44:10 +05:30
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
18865bef41 Merge pull request #136411 from olamilekan000/fix-cli-throwing-an-error-when-tailing-logs
fix cli throwing an error when trying to tail the logs for a Pod
2026-02-16 18:00:00 +05:30
olalekan odukoya
5b3b05921f fix cli throwing an error when trying to follow logs for pod while still initializing
Signed-off-by: olalekan odukoya <odukoyaonline@gmail.com>
2026-02-16 12:34:43 +01:00