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
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
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
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
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
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
yongruilin
380c4c222e
feat(validation-gen): Add declarative validation support for ResourceClaim/(v1,v1beta1,v1beta2)
2025-09-16 21:36:18 +00:00
yongruilin
4db49d0f4e
feat(validation): enhance slice validation with declarative options
2025-09-15 20:35:51 +00:00
Keisuke Ishigami
7184ac5a73
make v1 resource version first priority in resource
2025-09-10 09:48:21 +09:00
Sunyanan Choochotkaew
59bba92717
KEP-5075: generated codes from make update
...
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com >
2025-07-30 09:26:52 +09: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
yliao
3068b60b83
extended resource backed by DRA: codegen
2025-07-29 17:17:20 +00:00
yliao
1f2fd18ac8
extended resource backed by DRA: API types.go
2025-07-29 17:17:19 +00:00
Kobayashi,Daisuke
ac81b829e4
KEP-5007 DRA Device Binding Conditions: Run make update
2025-07-29 11:34:03 +00:00
Kobayashi,Daisuke
987ad39516
KEP-5007 DRA Device Binding Conditions: API Related code Update
2025-07-29 11:32:47 +00:00
Kobayashi,Daisuke
34c3b09383
KEP-5007 DRA Device Binding Conditions: API Update
2025-07-29 11:31:48 +00:00
Patrick Ohly
b768c1d1d5
DRA API: bump storage version to v1beta2
...
This avoids the overhead for the more complex conversion to v1beta1 and might
make it a bit more realistic to get rid of the v1beta1 eventually.
The expected GVK must be set explicitly because when emulating 1.33,
v1beta1 is the default although the fixed storage version is v1beta2.
2025-07-24 08:33:56 +02:00
Patrick Ohly
cff91579e8
DRA API: v1 registration + tests
2025-07-24 08:30:25 +02:00
Patrick Ohly
4e592f6c14
DRA API: s/v1beta2/v1/ and generated files
2025-07-24 08:30:24 +02:00
Patrick Ohly
1f2f433f76
DRA API: verbatim copy v1beta2 -> v1
2025-07-24 08:30:24 +02:00