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
Lalit Chauhan
92dcd02459
Add helpers for declarative validation tests
...
Introduces new testing helpers to simplify testing of declarative validation rules. The new `VerifyValidationEquivalence` and `VerifyUpdateValidationEquivalence` functions reduce boilerplate by encapsulating the logic for:
- Toggling the `DeclarativeValidation` and `DeclarativeValidationTakeover` feature gates.
- Comparing the validation output from the imperative and declarative paths.
The declarative validation tests for CertificateSigningRequest and ReplicationController are updated to use these new, simpler helpers.
2025-09-16 16:57:21 +00:00
yongruilin
4db49d0f4e
feat(validation): enhance slice validation with declarative options
2025-09-15 20:35:51 +00:00
Joe Betz
5647c07179
generate
...
Signed-off-by: Joe Betz <jpbetz@google.com >
2025-09-10 15:52:58 -04:00
Joe Betz
e910c181cb
Add model name generator tags
...
Signed-off-by: Joe Betz <jpbetz@google.com >
2025-09-10 15:52:58 -04:00
Tim Hockin
c4d8c9b544
Re-disable listmap uniqueness (for now)
2025-09-09 22:12:25 +00:00
Tim Hockin
6fb020b194
Temporary: Re-enable listmap uniqueness checks
...
Testing this exposed a bug -- we do this check for both the field AND
the type when the field is a typedef. Now fixed to only emit a
uniqueness check at the site where listmap keys are defined.
2025-09-09 22:11:47 +00:00
Tim Hockin
b6fdbe4a6a
Emit ratchet check for fields with a type func
...
This could go inside the type func but then we end up with a double
ratchet sometimes.
Co-Authored-By: Yongrui Lin <yongrlin@outlook.com >
2025-09-09 21:58:55 +00:00
Tim Hockin
3e2e2195ed
Unions: replace [2]string with a type
2025-09-09 16:55:11 +00:00
yongruilin
8130cf82b5
run "hack/update-codegen.sh valid"
2025-09-09 16:54:46 +00:00
Tim Hockin
348d576c9f
validation: Use JSON names in paths
...
This ensures that things that parse paths (e.g. to extract the leaf
part) get API-style names.
2025-09-09 16:15:17 +00:00
杨军10092085
62cadde688
Fix incorrect description of feature PodObservedGenerationTracking
2025-09-05 16:22:32 +08:00
Kubernetes Prow Robot
7284237ac4
Merge pull request #133229 from SergeyKanzhelev/fixupTypes
...
fix up types for 1.34 release - remove GA feature gates
2025-09-02 17:49:19 -07:00
Kubernetes Prow Robot
a6693542b7
Merge pull request #133781 from pohly/test-apiserver-flag-registration
...
test/integration/apiserver: fix several data races
2025-09-02 13:09:17 -07:00
Patrick Ohly
e32adad657
apiserver: fix PriorityClasses creation data race
...
As mentioned for SystemPriorityClasses:
NOTE: be careful not to modify any of elements of the returned array directly.
Create violates that because it temporarily changes the kind during encoding.
This led to a data race in test/integration/apiserver/oidc, found during local
testing.
Co-authored-by: Jordan Liggitt <liggitt@google.com >
2025-09-02 21:00:18 +02:00
Joe Betz
b6927088c8
Use consistent documentation of aliases in the API
2025-08-29 15:46:12 -04:00
Kubernetes Prow Robot
6b33567f9b
Merge pull request #133684 from soltysh/drop_StatefulSetAutoDeletePVC
...
Drop StatefulSetAutoDeletePVC after the feature GA-ed in 1.32
2025-08-28 10:49:15 -07:00
Maciej Szulik
09e357d31f
Drop StatefulSetAutoDeletePVC after the feature GA-ed in 1.32
...
Signed-off-by: Maciej Szulik <soltysh@gmail.com >
2025-08-28 13:35:16 +02:00
Harry Li
f1ceec70a6
feat(apis/batch): PodFailurePolicyOnPodConditionsPattern.Status can be omitted ( #133479 )
...
* feat(apis/batch): PodFailurePolicyOnPodConditionsPattern.Status can be omitted
Signed-off-by: Harry Li <bertram_li@163.com >
* chore: update generated files after API changes
---------
Signed-off-by: Harry Li <bertram_li@163.com >
Co-authored-by: Harry Li <bertram_li@163.com >
2025-08-27 18:30:08 -07:00
PatrickLaabs
62dcfe3bc0
Added WithOrigin within apis/core/validation with adjusted tests
2025-08-01 19:26:20 +02: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