Commit Graph

498 Commits

Author SHA1 Message Date
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
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
Harshal Neelkamal
754c108b96 Make ExternalServiceAccountTokenSigner GA 2026-02-03 23:47:33 +00:00
Bryce Palmer
79aaabb40f bugfix: add loopback certificate expiration health check
so that configured liveness probes will fail
if the loopback certificate has expired,
forcing a restart.

Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
2026-02-03 12:31:20 -05:00
Richa Banker
4e47bea7b0 Move flagz installation together with statusz's 2026-01-30 11:25:19 -08:00
Richa Banker
aaed7525dd Consolidate delete handler, reaper logic into same sync loop using the same worker - activeGVQueue 2026-01-21 16:53:28 -08:00
Richa Banker
1713b6d8f2 Wire GVExclusionManager 2026-01-21 15:22:29 -08:00
Kubernetes Prow Robot
f2143d70db Merge pull request #135597 from alvaroaleman/plumb-context
Service account controller: Wire through context
2026-01-13 02:15:00 +05:30
Kubernetes Prow Robot
b9d491f56e Merge pull request #134556 from carlory/fix-133160
lock the feature-gate VolumeAttributesClass to default (true)
2025-12-18 15:13:17 -08:00
carlory
f8e8e55f1d locked the feature-gate VolumeAttributesClass to default (true) and switch storage version from v1beta1 to v1
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-12-18 15:59:33 +08:00
Kubernetes Prow Robot
508074f023 Merge pull request #135615 from soltysh/drop_autoscaling_v2betaX
Drop autoscaling v2beta1 and v2beta2
2025-12-17 23:28:25 -08:00
yliao
3e34de29c4 fixed the loophole that allows user to get around resource quota set by system admin 2025-12-18 00:56:20 +00:00
Maciej Szulik
e347aa994b React to removing autoscaling v2beta1 and v2beta2
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-12-05 11:59:30 +01:00
Alvaro Aleman
3d6a5d471f Service account controller: Wire through context
This change enables structured logging and cancellation in the service
account controller by replacing the usage of context.TODO with an actual
context.
2025-12-04 19:30:55 -05:00
Richa Banker
8f2c0a9a60 kube-apiserver: Enable peer proxy and peer-aggregated discovery
Wire up peer proxy infrastructure in kube-apiserver:
- Add UnknownVersionInteroperabilityProxy feature gate
- Configure peer proxy with identity lease selectors
- Register CRD and APIService informers with exclusion filters
- Start peer discovery sync and GV cleanup workers

Includes extractors for CRDs and APIServices to identify which
GroupVersions should be excluded from peer discovery.

Part of KEP-4020: Unknown Version Interoperability Proxy
2025-11-06 12:48:19 -08:00
Maciej Skoczeń
9639274676 api: Create Workload API 2025-11-06 09:36:43 +00:00
Kubernetes Prow Robot
b869afe68d Merge pull request #133389 from pravk03/node-capabilities
Introduce node declared features framework
2025-11-06 01:32:54 -08:00
Praveen Krishna
e7a42e8e8e feat(admission): Add NodeDeclaredFeatures admission plugin 2025-11-06 01:21:17 +00:00
yliao
870062df4f adjusts DRA extended resource quota to include devices usages from regular resource claims 2025-11-05 23:24:24 +00:00
yongruilin
2422bc0bb8 feat: Implement structured /flagz endpoint 2025-11-04 19:45:30 +00:00