Files
kubernetes/pkg/apis
Lalit Chauhan a11feac678 validation-gen: Fix missing MarkAlpha/MarkBeta for nested validation tags
The validation code generator was failing to propagate the
StabilityLevel from the parent context when evaluating composite tags
like `+k8s:item`, `+k8s:each`, and `+k8s:subfield`. As a result, inner
validations like `+k8s:zeroOrOneOfMember` combined with `+k8s:alpha`
were not emitting `.MarkAlpha()` in the generated code.

This fix ensures the `StabilityLevel` is copied to the `subContext`
during evaluation, and adds a test case for list items using
`+k8s:alpha=+k8s:item(...)=+k8s:zeroOrOneOfMember`.

Generated code is updated accordingly.
2026-02-25 17:48:09 +00:00
..
2025-09-10 15:52:58 -04:00
2025-03-08 15:18:00 -08:00
2024-12-02 16:59:34 +01:00
2024-12-02 16:59:34 +01:00
2025-03-12 19:25:30 +00:00
2024-12-02 16:59:34 +01:00
2025-07-14 18:13:00 +00:00
2024-12-02 16:59:34 +01:00
2025-03-08 15:18:00 -08:00
2025-10-29 19:36:11 +00:00