Kubernetes Prow Robot
db63a581ca
Merge pull request #134366 from tallclair/feature-gates-test
...
Set multiple feature gates simultaneously in test
2025-10-13 13:11:33 -07:00
Kubernetes Prow Robot
b30d138603
Merge pull request #134465 from lalitc375/k8s-label-key
...
Add k8s-label-key format for toleration key
2025-10-10 13:57:00 -07:00
Lalit Chauhan
8b5cf608fd
Add k8s-label-key format for toleration key
2025-10-10 16:25:48 +00:00
PersistentJZH
b738e8c3ca
fix panic in cron.ParseStandard
...
Signed-off-by: PersistentJZH <zhihao.kan17@gmail.com>
fix
optimize logic
fix unit test
2025-10-10 23:51:05 +08:00
Aaron Prindle
d77cb206a0
feat: migrate k8s:format=k8s-long-name-caseless validation on OpaqueDeviceConfiguration.Driver to declarative validation
2025-10-08 20:45:01 +00:00
Aaron Prindle
b4fa5794ef
generate
2025-10-07 22:49:14 +00:00
Aaron Prindle
1c0f0add8a
feat: add +k8s:immutable tag to ResourceClaim.spec and associated tests
2025-10-07 22:49:11 +00:00
Aaron Prindle
dfd7b230b4
feat: make it so that all ShortCircuit validators are run for short circuiting check
2025-10-07 22:47:42 +00:00
Kubernetes Prow Robot
73bcd2b0e4
Merge pull request #134333 from lalitc375/reserved-for
...
Add listType=map and listMapekey=uid for ResourceClaimStatus.ReservedFor
2025-10-07 15:44:59 -07:00
Kubernetes Prow Robot
62e9524c85
Merge pull request #134412 from aaron-prindle/resourceclaim-strategy-cleanup
...
fix: remove unnecessary ValidateResourceClaim call from resourclaim ValidateUpdate
2025-10-07 14:24:59 -07:00
Kubernetes Prow Robot
251b3ad820
Merge pull request #134284 from aaron-prindle/fix-resourceclaim-oneof-logic
...
fix: update pkg/apis/resource validateDeviceRequest to short-circuit on the oneOf check
2025-10-07 13:35:01 -07:00
Lalit Chauhan
1fb8674387
Add listType=map and listMapekey=uid for ResourceClaimStatus.ReservedFor
2025-10-07 20:07:48 +00:00
Kubernetes Prow Robot
3a53784ecb
Merge pull request #133876 from kei01234kei/make_v1_version_fist_priotiry_inresource
...
make v1 resource version first priority in resource
2025-10-07 08:55:02 -07:00
Kubernetes Prow Robot
ad82c3d39f
Merge pull request #134391 from lalitc375/k8s-uuid
...
Add DV for uids in resourceClaim Status
2025-10-06 15:42:59 -07:00
Aaron Prindle
111fc04e1d
fix: update pkg/apis/resource validateDeviceRequest to short-circuit on the oneOf check
2025-10-06 22:15:53 +00:00
Aaron Prindle
e62523e1f5
address feedback
2025-10-06 22:10:33 +00:00
Lalit Chauhan
4ca286819a
Add DV for uids in resourceClaim Status
2025-10-06 20:54:00 +00:00
yongruilin
6138a68f4e
fix(validation): Mark covered errors in TestValidateClaim for better clarity
2025-10-06 17:54:03 +00:00
yongruilin
7bbc7228ac
run update-codegen.sh
2025-10-04 03:28:50 +00:00
yongruilin
7366031541
feat(dra): Add maxItems validation tags for ResourceClaim fields
...
This commit adds +k8s:maxItems tags to several slice fields within the ResourceClaimSpec across versions v1, v1beta1, and v1beta2.
The following fields under ResourceClaimSpec are now validated for their maximum number of items:
- DeviceRequest.FirstAvailable
- ExactDeviceRequest.Selectors
- DeviceSubRequest.Selectors
- DeviceConstraint.Requests
- DeviceClaimConfiguration.Requests
2025-10-04 03:26:24 +00:00
Lalit Chauhan
f79fb9e59e
Fix rebase issues
2025-10-02 17:23:25 +00:00
Lalit Chauhan
515b579945
feat(resource): Add maxItems validation for DeviceClass configs
2025-10-02 05:40:58 +00:00
Lalit Chauhan
e693da7290
feat(resource): Add maxItems validation for DeviceClass selectors
...
This commit introduces a validation rule to limit the number of selectors
in a DeviceClass to 32. This is done by adding the `+k8s:maxItems=32`
marker to the DeviceClassSpec and running the code generator.
The following changes are included:
- Updated `staging/src/k8s.io/api/resource/v*/types.go` with the validation marker.
- Regenerated validation code in `pkg/apis/resource/v*/zz_generated.validations.go`.
- Improved error message in `pkg/apis/resource/validation/validation.go`.
- Added tests in `pkg/registry/resource/deviceclass/declarative_validation_test.go`
to cover the new validation.
2025-10-02 05:40:58 +00:00
Tim Allclair
4986abe0b8
Automated refactoring to use SetFeatureGatesDuringTest
2025-10-01 21:10:53 -07:00
Kubernetes Prow Robot
48390fb98e
Merge pull request #134347 from yongruilin/master_vg-cleanup
...
feat(validation-gen): Add "cohorts" & Tighten and simplify test framework
2025-10-01 16:40:56 -07:00
Kubernetes Prow Robot
0f8107c736
Merge pull request #134211 from aaron-prindle/resourceclaim_maxitems
...
Add declarative validation +k8s:maxItems tag to ResourceClaim
2025-10-01 15:22:56 -07:00
yongruilin
51f02aa58a
fix: Update error origin in ValidateDNS1123Label to use k8s-short-name format
2025-10-01 21:10:07 +00:00
yongruilin
6b11e6433c
run update-codegen to for ReplicationController
2025-10-01 20:42:23 +00:00
Tim Hockin
2d48dae391
Eliminate public ValidateReplicationControllerName
...
Everyone who referenced it now uses the underlying function. Clearer
and frees me up to change objectMeta validation without impacting anyone
else.
2025-10-01 19:45:37 +00:00
Tim Hockin
229c6b13ca
Validate ReplicationController.metadata.name
...
This relies on `+k8s:subfield` and validation cohorts. The
`k8s:optional` ensures that we don't run the name validation if name is
empty, because core apimachinery will already flag it as Required().
This demonstrates some of the DV value - docs and clients are now (in
theory) able to see what RC's name format is.
Co-Authored-by: Yongrui Lin <yongrlin@outlook.com>
2025-10-01 19:45:37 +00:00
Tim Hockin
5d067af5e1
Prefactor: Fix some bad tests
2025-10-01 19:00:30 +00:00
yongruilin
04d632dd05
fix: Adjust validation for pool names to ensure proper coverage in device requests
2025-10-01 18:35:23 +00: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
Aaron Prindle
2c12d5731e
fix validation_resourceclaim_test.go with MarkCoveredByDeclarative
2025-09-29 18:53:33 +00:00
Aaron Prindle
9380248ad6
generate
2025-09-29 18:53:33 +00: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
Joe Betz
03a1a22478
Add declarative validation tests, use tweak pattern, and additional test structure changes
2025-09-29 16:03:53 +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
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
Aaron Prindle
5119b86966
refactor(DRA validation): Add granular controls to ValidateCSIDriverName for declarative validation migration
2025-09-26 01:42:33 +00: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
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
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
yongruilin
f8d2df0f74
refactor: skip re-validating for unchanged resource claim specs
2025-09-17 21:47:45 +00:00
Kubernetes Prow Robot
ec4e321f00
Merge pull request #134072 from yongruilin/master_vg_enable-resourceclaim
...
Enable Declarative Validation for resource.k8s.io v1/v1beta1/v1beta2
2025-09-17 12:50:14 -07:00
Kubernetes Prow Robot
79af149f86
Merge pull request #133850 from yongruilin/vg_error-mismatch
...
refactor(DRA validation): Add granular controls for declarative validation migration
2025-09-16 15:28:10 -07:00
yongruilin
380c4c222e
feat(validation-gen): Add declarative validation support for ResourceClaim/(v1,v1beta1,v1beta2)
2025-09-16 21:36:18 +00:00