Commit Graph

53771 Commits

Author SHA1 Message Date
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
60eeaa6ebd DRA scheduler: add unit test for allocator selection
This prevents the mistake from 1.34 where the default-on
DRAResourceClaimDeviceStatus feature caused the use of the experimental
allocator implementation. The test fails without a fix for that.
2025-09-30 16:53:38 +02:00
Patrick Ohly
7f57730ba4 DRA scheduler: fix selection of "incubating" allocator implementation
In 1.34, the default feature gate selection picked the "experimental" allocator
implementation when it should have used the "incubating" allocator. No harm
came from that because the experimental allocator has all the necessary if
checks to disable the extra code and no bugs were introduced when implementing
it, but it means that our safety net wasn't there when we expected it to be.

The reason is that the "DRAResourceClaimDeviceStatus" feature gate is on by
default and was only listed as supported by the experimental implementation.
This could be fixed by listing it as supported also by the other
implementation, but that would be a bit odd because there is nothing to support
for it (the reason why this was missed in 1.34!). Instead, the allocator
features are now only indirectly related to feature gates, with a single
boolean controlling the implementation of binding conditions.
2025-09-30 16:53:38 +02:00
Patrick Ohly
b5bcac998d DRA scheduler: clean up feature gate handling
Copying from feature.Features to new fields in the plugin got a bit silly with
the long list of features that we have now. Embedding feature.Features is
simpler.

Two fields in feature.Features weren't named according to the feature gate, now
they are named consistently and the fields are sorted.
2025-09-30 16:53:38 +02:00
Kubernetes Prow Robot
e5c04392c0 Merge pull request #134276 from aaron-prindle/allocation-mode-enum
fix: add +enum tag to resource DeviceAllocationMode
2025-09-30 07:14:34 -07:00
Kubernetes Prow Robot
14fb5e6481 Merge pull request #133697 from tallclair/feature-deps
Codify feature gate dependencies
2025-09-30 07:14:18 -07:00
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
Kubernetes Prow Robot
7f180515d7 Merge pull request #134233 from aaron-prindle/dv-validate-csi-driver-option-support
refactor(DRA validation): Add granular controls to ValidateCSIDriverName for declarative validation migration
2025-09-29 12:20:20 -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
1ffdc16b71 Merge pull request #134314 from xigang/node_controller_zone
node_lifecycle_controller: fix ComputeZoneState method comment
2025-09-29 11:30:24 -07:00
Kubernetes Prow Robot
da552ef1d7 Merge pull request #134240 from yongruilin/master_vg_strategy-call
Refactor: Centralize declarative validation logic
2025-09-29 11:30:17 -07:00
xigang
574b09b7de nodelifecycle: fix ComputeZoneState method comment
Signed-off-by: xigang <wangxigang2014@gmail.com>
2025-09-28 10:56:56 +08:00
Dan Bokete
b40b67b9cf Deprecate caseless driver name validation and enforce lowercase warnings
- Deprecate IsDNS1123SubdomainCaseless to avoid caseless validation issues.
- Warn when ResourceSlice driver names contain uppercase characters.
- Clarify driver names must be DNS subdomains and use only lowercase letters.
- Update tests, staging code, and OpenAPI spec to reflect the changes.
2025-09-27 13:23:59 +01:00
yongruilin
96349a4608 chore: Move declarative validation featuregates to staging apiserver 2025-09-26 22:30:16 +00:00
yongruilin
9a7e2291d1 refactor: Remove Validate(Update)Declaratively and improve error handling 2025-09-26 17:22:48 +00:00
Joe Betz
d2ec0308c7 simplify scale subresource testing and document expectations
Co-Authored-by: Yongrui Lin <yongrlin@outlook.com>
2025-09-26 17:22:48 +00:00
yongruilin
2d7dd9164f Refactor: Centralize declarative validation and migration logic
The boilerplate for running declarative validation was duplicated across multiple resource strategies. This included feature gate checks, metric identifier generation, error comparison, and conditional merging logic, which made the code verbose and difficult to maintain.

This commit introduces a new helper function, `rest.ValidateDeclarativelyWithMigrationChecks`, to encapsulate this common logic. All relevant strategies have been refactored to use this new function, resulting in cleaner and more concise code.
2025-09-26 17:22:46 +00:00
Kubernetes Prow Robot
0bdf1f89c3 Merge pull request #134279 from yongruilin/master_customunique
feat(validation-gen): Introduce k8s:customUnique to control listmap uniqueness
2025-09-26 10:10:16 -07:00
Kubernetes Prow Robot
4f72f0fdbf Merge pull request #134113 from jpbetz/resource-claim-status-pool
Enable Declarative Validation Pool status field of ResourceClaim
2025-09-26 09:16:18 -07:00
Kubernetes Prow Robot
aecc114b37 Merge pull request #134275 from humblec/fix
Fix error messages in volume path handler
2025-09-26 07:42:19 -07:00
Aaron Prindle
5119b86966 refactor(DRA validation): Add granular controls to ValidateCSIDriverName for declarative validation migration 2025-09-26 01:42:33 +00:00
Tim Allclair
2c78bc981c Introduce API to codify and validate feature gate dependencies 2025-09-25 16:45:43 -07:00
Joe Betz
7efc77f493 Apply feedback 2025-09-25 14:51:52 -04:00
yongruilin
7bab54a7c8 emit comment for uniqueness is disabled by k8s:customUnique 2025-09-25 17:37:17 +00:00
yongruilin
71797498f9 test(certificates): Add ratcheting test for CSR conditions 2025-09-25 17:37:16 +00:00
Lalit Chauhan
3015e58e40 Improve tests devex for DV tests. 2025-09-25 17:29:30 +00:00
Humble Devassy Chirammal
ad8f91fb0f Fix error messages in volume path handler
Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2025-09-25 22:37:03 +05:30
Aaron Prindle
53b81011e2 fix: add +enum tag to resource DeviceAllocatoionMode 2025-09-25 16:58:31 +00:00
Joe Betz
dbe4143de6 generate 2025-09-24 10:00:17 -04:00
Joe Betz
7019a088c3 Add declarative validation tests for ResourceClaim status 2025-09-24 10:00:17 -04:00
Joe Betz
8606fa03dc Add declarative validation of ResourceClaim status pool field 2025-09-24 10:00:17 -04:00
Maciej Skoczeń
d2e6be440c Revert "Merge pull request #133213 from sanposhiho/second-trial-conor"
This reverts commit a2bf45b081, reversing
changes made to 2b2ea27250.
2025-09-24 11:05:16 +00:00
Kubernetes Prow Robot
1eb2c4182d Merge pull request #134102 from mayank-agrwl/namespace-nodelifecycle-contextual
Replace HandleError with HandleErrorWithContext
2025-09-23 18:50:17 -07:00
Jordan Liggitt
840aa4722e Drop unnecessary gogo dependencies 2025-09-23 13:44:20 -04:00
Kubernetes Prow Robot
9f40c6f62c Merge pull request #134137 from aditigupta96/refactor-core-waitfornamedcachesync
refactor: Use WaitForNamedCacheSyncWithContext in core components
2025-09-23 01:32:16 -07:00
Kubernetes Prow Robot
1aec2eb003 Merge pull request #134156 from JoelSpeed/enable-ssa-tags
Enable SSATags linter to enforce +listType on lists in APIs
2025-09-22 09:50:17 -07:00
Omer Aplatony
a8a21aaf85 Add hpa object count metric (#134140)
* Add hpa object count metrics

Signed-off-by: Omer Aplatony <omerap12@gmail.com>

* change name to num_horizontal_pod_autoscalers

Signed-off-by: Omer Aplatony <omerap12@gmail.com>

* remove log line

Signed-off-by: Omer Aplatony <omerap12@gmail.com>

---------

Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2025-09-22 06:10:19 -07:00
Kubernetes Prow Robot
db0315a641 Merge pull request #134154 from macsko/dont_limit_the_number_of_goroutines_dispatcher_by_api_dispatcher
Don't limit the number of goroutines dispatched by the API Dispatcher
2025-09-22 04:54:17 -07:00
Kubernetes Prow Robot
09aaf72260 Merge pull request #134124 from danwinship/iptables-setup
drop utiliptables.NewDualStack, which is too confusing
2025-09-19 08:30:12 -07:00
Joel Speed
4e71993917 Enable SSATags linter to enforce +listType on lists in APIs 2025-09-19 13:57:07 +01:00
Maciej Skoczeń
4275b8b759 Don't limit the number of goroutines dispatched by the API Dispatcher 2025-09-19 09:36:44 +00:00
Kubernetes Prow Robot
a742db1bf6 Merge pull request #134093 from yongruilin/master_resource_ratcheting
refactor: skip re-validating for unchanged resource claim specs
2025-09-18 15:24:18 -07:00
Kubernetes Prow Robot
725c9153df Merge pull request #134078 from aaron-prindle/vg-enable-deviceclass
feat(validation-gen) enable declarative validation for resource.k8s.io DeviceClass
2025-09-18 15:24:12 -07:00
Aditi Gupta
f44279647b refactor: Use WaitForNamedCacheSyncWithContext in core components
Signed-off-by: Aditi Gupta <aditigpta@google.com>
2025-09-18 11:34:28 -07:00
Kubernetes Prow Robot
b4943a9dc9 Merge pull request #134104 from aditigupta96/refactor-cloud-node-controllers
refactor(controller): Use WithContext variants in cloud node controllers
2025-09-18 10:32:22 -07:00
Kubernetes Prow Robot
d7bd2b0343 Merge pull request #134030 from richabanker/update-metrics-docs
Update metrics docs list for v1.34
2025-09-18 08:04:15 -07:00
hojinchoi
7028ba09db fix: duplicated 'the' in comment 2025-09-18 18:11:44 +09:00
Kubernetes Prow Robot
d3cb6b539d Merge pull request #133178 from liggitt/psa-emulation
make admission and pod-security-admission checks be informed by emulation version
2025-09-17 17:22:07 -07:00
Dan Winship
f8bfcfc885 Drop utiliptables.NewDualStack()
The semantics (sometimes it returns an error that is really just a
warning) are too confusing, and it turns out that we really only need
it in one place (platformCheckSupported()); after that we've already
figured out what IP families are supported, so we could just use
utiliptables.NewBestEffort() instead, knowing we want exactly what it
returns.

So we can just expand the semantics of the old NewDualStack() inline
in the one place we care, without hiding any of it behind a
too-complicated return value.
2025-09-17 20:14:28 -04:00
yongruilin
f8d2df0f74 refactor: skip re-validating for unchanged resource claim specs 2025-09-17 21:47:45 +00:00