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
Lalit Chauhan
8b5cf608fd
Add k8s-label-key format for toleration key
2025-10-10 16:25:48 +00: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
1c0f0add8a
feat: add +k8s:immutable tag to ResourceClaim.spec and associated tests
2025-10-07 22:49:11 +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
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
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
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
Joe Betz
03a1a22478
Add declarative validation tests, use tweak pattern, and additional test structure changes
2025-09-29 16:03:53 +00: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
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
yongruilin
4db49d0f4e
feat(validation): enhance slice validation with declarative options
2025-09-15 20:35:51 +00:00
Sunyanan Choochotkaew
5ad969588d
KEP-5075: API updates
...
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com >
2025-07-30 09:26:40 +09:00
yliao
34a64db2c7
extended resource backed by DRA: implementation
2025-07-29 18:55:21 +00:00
Kobayashi,Daisuke
987ad39516
KEP-5007 DRA Device Binding Conditions: API Related code Update
2025-07-29 11:32:47 +00:00
xiaoweim
61542e7a98
Cleanup: Remove field name from invalid field detail message
2025-07-14 18:13:00 +00:00
PatrickLaabs
1ae1964e88
chore: depr. pointer pkg replacement for pkg/apis
2025-07-07 16:19:01 +02:00
Tim Hockin
384240b4d9
Use "Invalid" errors rather than "TypeInvalid"
2025-06-14 17:50:38 -07:00
Morten Torkildsen
39507d911f
Add resource v1beta2 API
2025-03-26 14:41:09 +00:00
Cici Huang
ece1d76e80
API manual changes
...
Co-authored-by: Morten Torkildsen <mortent@google.com >
2025-03-19 22:10:48 +00:00
Patrick Ohly
797475e113
DRA: add device taints API
...
This adds the "DeviceTaint" top-level type to v1alpha3 and related fields to
ResourceSlice and ResourceClaim. It's complete enough bring up an API server
and generate files.
2025-03-18 20:52:54 +01:00
Dan Winship
fc4bb4fdb9
Add validation.IsValidInterfaceAddress
...
Split "ifaddr"-style ("192.168.1.5/24") validation out of IsValidCIDR.
Since there is currently only one field that uses this format, and it
already requires canonical form, IsValidInterfaceAddress requires
canonical form unconditionally.
2025-03-12 09:37:39 -04:00
Kubernetes Prow Robot
9d45ea8b9d
Merge pull request #128586 from mortent/DRAPrioritizedList
...
Prioritized Alternatives in Device Requests
2025-03-06 21:01:44 -08:00
Kubernetes Prow Robot
0556b20d3d
Merge pull request #129435 from googs1025/dra/validation
...
chore: add more error info for validateResourceSliceSpec
2025-03-01 02:16:55 -08:00
Morten Torkildsen
e2d1fcc162
Addressed comments
2025-02-28 20:47:35 +00:00
Morten Torkildsen
a716095a8a
DRA: Update validation for Prioritized Alternatives in Device Requests
2025-02-28 19:28:50 +00:00
Kubernetes Prow Robot
803e9d6495
Merge pull request #130355 from yongruilin/validation_origin
...
validation: Add Origin field to field.Error for more precise error tracking
2025-02-28 00:04:23 -08:00
yongruilin
a488509197
test: Improve error comparison in resource validation tests
...
Replace manual error logging with cmp.Diff for more precise error comparisons, using cmpopts to ignore Origin field and support UniqueString comparison.
2025-02-27 05:20:54 +00:00
Kubernetes Prow Robot
a18b4a8d97
Merge pull request #129158 from LionelJouin/fix-128831
...
Fix ResourceClaim status API inconsistency
2025-02-26 20:32:30 -08:00
googs1025
f540197768
chore: add more error info for validateResourceSliceSpec
2025-02-22 08:47:58 +08:00
Kubernetes Prow Robot
9bf60d06e0
Merge pull request #129219 from danwinship/networkdevicedata-validation
...
Require canonicalization of NetworkDeviceData IPs
2025-02-20 16:14:26 -08:00
Dan Winship
2636aa35e3
Require canonicalization of NetworkDeviceData IPs
...
There's no reason to allow non-standard or non-canonical IP values in
new APIs.
2025-02-20 12:49:03 -05:00