Commit graph

517 commits

Author SHA1 Message Date
Kubernetes Prow Robot
e2ed47e2de
Merge pull request #134860 from danwinship/apiserver-service-proxy
Port service/proxy subresource from Endpoints to EndpointSlice
2026-06-11 03:10:50 +05:30
Dan Winship
6559d7ca54 Port service/proxy subresource from Endpoints to EndpointSlice
Co-authored-by: Jordan Liggitt <liggitt@google.com>
2026-06-10 15:10:38 -04:00
Wei Fu
855d0ae3ee *: remove grpc.WithBlock from etcd clientv3 option
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-05-29 19:49:54 -04:00
Kubernetes Prow Robot
48ba469549
Merge pull request #137204 from luxas/authorizer-decision-to-struct
Conditional Authz [1/n]: Add conditional capabilities to the authorizer interface
2026-05-27 02:32:00 +05:30
dom4ha
88948acc38 Remove v1alpha2 API definitions
Update client-go lister and informer imports to v1alpha3
2026-05-22 12:50:19 +00:00
dom4ha
69636c9707 Create v1alpha3 API as copy of v1alpha2 and update package names 2026-05-22 12:50:12 +00:00
Kubernetes Prow Robot
ea692abff6
Merge pull request #134151 from ialidzhikov/enh/default-watch-cache-size-1
apiserver: Clean up the obsolete `DefaultWatchCacheSize` etcd option
2026-05-21 18:46:48 +05:30
Lucas Käldström
69a8b4dd7a Adapt the codebase to the Authorizer interface change 2026-05-13 18:34:51 +03:00
Wojciech Tyczyński
17460de7bd Revert "KEP-5832: Implement PodGroup admission (#137464) 2026-05-12 21:00:23 +02:00
Benjamin Elder
ec5f4dce1b undeprecate enable-logs-handler
This is an opt-in feature to expose logs, while there are some security concerns, functionaly it is very similar to the recently GA-ed NodeLogQuery, which is also opt-in.

This feature has been "deprecated" since 1.15 without removal and is still actively used by multiple installers / distros (e.g. GKE, https://github.com/zalando-incubator/kubernetes-on-aws)

It is not reasonable to plan removal after 20+ releases, and there do not seem to be any plans to do so.
2026-05-08 14:19:24 -07:00
Kubernetes Prow Robot
692d9f21dd
Merge pull request #138907 from Jefftree/remove-locked-apimachinery-feature-gates
Remove locked GA feature gates (sig-api-machinery)
2026-05-09 01:57:18 +05:30
Jefftree
98e17b2565 Remove locked GA feature gate APIServerTracing 2026-05-08 14:15:58 -04:00
Lucas Käldström
7e3c734947 Add the Unconditional prefix to Authorizer and WantsAuthorizer interfaces 2026-05-07 22:22:14 +03:00
Joe Betz
015b89788b
Test that all strategies opt-in to declarative validation 2026-04-24 12:01:42 -04:00
Kubernetes Prow Robot
6448bfa39e
Merge pull request #138102 from kairosci/fix-apiserver-endpoint-validation
fix: validate apiserver endpoints in master lease reconciler
2026-04-23 05:11:43 +05:30
Kubernetes Prow Robot
2d4c2c90b2
Merge pull request #137377 from atombrella/feature/pkg_controlplane
pkg/controlplane: use modernize/slicescontains and modernize/rangeint
2026-04-23 03:20:25 +05:30
Alessio Attilio
ec93e717bd delegate endpoint IP validation to reconciler 2026-04-01 23:12:19 +02:00
Antonio Ojea
adbf3b5aa5
Add granular authorization for DRA ResourceClaim status updates
This commit introduces the DRAResourceClaimGranularStatusAuthorization
feature gate (Beta in 1.36) to enforce fine-grained authorization checks
on ResourceClaim status updates.

Previously, 'update' permission on 'resourceclaims/status' allowed modifying
the entire status. To enforce the principle of least privilege for DRA
drivers and the scheduler, this change introduces synthetic subresources and
verb prefixes:

- 'resourceclaims/binding': Required to update 'status.allocation' and
  'status.reservedFor'.
- 'resourceclaims/driver': Required to update 'status.devices'. Evaluated
  on a per-driver basis using 'associated-node:<verb>' (for node-local
  ServiceAccounts) or 'arbitrary-node:<verb>' (for cluster-wide controllers).
2026-03-26 13:22:09 +00:00
Heba
cf5ba01d13
KEP-5832: Implement PodGroup admission (#137464)
* Add admission for podGroup

Signed-off-by: helayoty <heelayot@microsoft.com>

* Create workload object before podgroup

Signed-off-by: helayoty <heelayot@microsoft.com>

---------

Signed-off-by: helayoty <heelayot@microsoft.com>
2026-03-19 21:32:34 +05:30
helayoty
981a333927
Add admission plugin for update parallelism
Signed-off-by: helayoty <heelayot@microsoft.com>
2026-03-18 22:32:57 +00:00
helayoty
fc88e37288
Add admission plugin for PodGroup to add finalizer to every new object
Signed-off-by: helayoty <heelayot@microsoft.com>
2026-03-18 15:28:14 +00:00
Abhijit Hoskeri
c07f3ebbde Fix logspam in leaderelection controller.
If the reconcileElectionStep function returns `noRequeue, nil`, it causes log
spam from apiserver.  This is because HandleErrorWithContext regardless of
error value.  Skip logging if error is nil.

Also, tag the log message with the involved lease object name.

```
...
{"ts":1773796037662.8264,"logger":"UnhandledError","caller":"leaderelection/leaderelection_controller.go:169","msg":"Failed to reconcile election step"}
{"ts":1773796038472.465,"logger":"UnhandledError","caller":"leaderelection/leaderelection_controller.go:169","msg":"Failed to reconcile election step"}
...
```
2026-03-17 18:05:20 -07:00
Kubernetes Prow Robot
e1be691e7f
Merge pull request #136043 from natasha41575/os_feasibility
[InPlacePodVerticalScaling] create an admission plugin to perform the OS and node capacity checks
2026-03-18 03:23:39 +05:30
Natasha Sarkar
fd8c6d3e2e add pod resize feasibility check admission plugin 2026-03-17 17:12:31 +00:00
Kubernetes Prow Robot
76f0bd54b8
Merge pull request #137533 from tico88612/feat/contextual-logging-servicecidr
Use contextual logging in service cidr controller
2026-03-17 12:11:39 +05:30
ChengHao Yang
90912e6e10
Plumb ctx down to sync() and syncStatus() methods
Use contextual logging in sync() and syncStatus() by passing ctx
from the caller instead of context.Background(). Replace klog.Infof
calls with logger.Info/Error from klog.FromContext(ctx).

Update tests to use ktesting.NewTestContext.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2026-03-13 14:06:23 +08:00
Kubernetes Prow Robot
8cca7a629e
Merge pull request #137679 from jpbetz/fix-and-test-wiping-reset-consistency
Fix and test wiping reset consistency
2026-03-13 05:15:34 +05:30
Joe Betz
a073972cad
Add test to ensure reset fields is applied consistently 2026-03-12 17:43:04 -04:00
Kubernetes Prow Robot
a3374ab464
Merge pull request #137492 from tico88612/feat/contextual-logging-leaderrelection
Use contextual logging in leaderelection controller
2026-03-12 00:45:50 +05:30
Antoni Zawodny
3f094dc228
Create Workload API v1alpha2 (#136976)
* Drop WorkloadRef field and introduce SchedulingGroup field in Pod API

* Introduce v1alpha2 Workload and PodGroup APIs, drop v1alpha1 Workload API

Co-authored-by: yongruilin <yongrlin@outlook.com>

* Run hack/update-codegen.sh

* Adjust kube-scheduler code and integration tests to v1alpha2 API

* Drop v1alpha1 scheduling API group and run make update

---------

Co-authored-by: yongruilin <yongrlin@outlook.com>
2026-03-10 07:59:10 +05:30
Kubernetes Prow Robot
e7f635506d
Merge pull request #136763 from richabanker/nh-alpha
Enable native histograms gated by feature flag in apiserver
2026-03-10 04:11:09 +05:30
ChengHao Yang
92a8387751
Use contextual logging in service cidr controller
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2026-03-07 22:47:09 +08:00
ChengHao Yang
1360b939cf
Use contextual logging in leaderelection controller
Replace deprecated logging and wait APIs with their context-aware
alternatives in pkg/controlplane/controller/leaderelection/:

- utilruntime.HandleCrash -> HandleCrashWithContext
- utilruntime.HandleError -> HandleErrorWithContext
- cache.WaitForCacheSync -> WaitForNamedCacheSyncWithContext
- wait.Until -> wait.UntilWithContext

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2026-03-07 00:26:53 +08:00
Richa Banker
3b98cd284d Enable native histograms gated by feature flag 2026-03-05 16:35:00 -08:00
Jordan Liggitt
45900a1deb
Fix vet error 2026-03-05 18:11:02 -05:00
Mads Jensen
e9e2bc964a pkg/controller: use modernize/slicescontains and modernize/rangeint 2026-03-03 19:12:38 +01:00
Richa Banker
6e6efbce27 Graduate Mixed Version Proxy to Beta 2026-02-25 13:38:11 -08:00
Your Name
dc4b3beeb0 Move storageversionhashdata variables to instance_test.go
This addresses a PR review comment to clean up storageversionhashdata which is only used in tests by moving its contents directly into the test file where they are used and making them private.
2026-02-23 22:20:44 +00:00
Jordan Liggitt
2c9ccde2d0
Make quota evaluators in admission conditional on enabled resources 2026-02-20 11:34:33 -05:00
Jordan Liggitt
a64caab38f
Make API group enablement accurate for generic API server 2026-02-20 11:34:33 -05:00
Kubernetes Prow Robot
855ee92e19
Merge pull request #133407 from richabanker/mvp-egress-dialer
Add egress dialer to proxyClientConfig for Mixed Version Proxy
2026-02-20 01:45:43 +05:30
Richa Banker
50d2f0fce1 Add egress dialer to proxyClientConfig for Mixed Version Prpxy 2026-02-19 10:10:24 -08: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
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
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
Kubernetes Prow Robot
46ac9df8c8
Merge pull request #135675 from richabanker/merged-discovery
Peer-aggregated discovery: add GV Exclusion Manager
2026-02-11 06:12:07 +05:30
Richa Banker
f4882eeaa6 Use AddAfter for GV reaping instead of periodic ticker 2026-02-09 19:20:38 -08:00
Richa Banker
d03e9c8708 Use single worker for ActiveGVTracker and Refliter workqueues 2026-02-08 21:30:35 -08:00
Kubernetes Prow Robot
5dd7be6b4f
Merge pull request #136118 from HarshalNeelkamal/ga-external-jwt
Make ExternalServiceAccountTokenSigner GA
2026-02-06 03:16:29 +05:30
Kubernetes Prow Robot
c4f5cea36b
Merge pull request #135746 from richabanker/move-flagz
Move apiserver's flagz installation to genericapiserver alongside statusz
2026-02-04 05:32:27 +05:30