kubernetes/pkg/apis/flowcontrol/validation
Yongrui Lin 177d2ae7a1 flowcontrol: emit Required when spec.type or limitResponse.type is empty
Handwritten validation previously fell through to NotSupported when
PriorityLevelConfigurationSpec.Type or LimitResponse.Type was empty. The
declarative validator emits FieldValueRequired for these fields, so the
two paths disagreed for the empty case. Branch on len(Type)==0 to emit
Required (matching declarative); keep NotSupported for unknown values.
2026-05-01 23:08:29 +00:00
..
validation.go flowcontrol: emit Required when spec.type or limitResponse.type is empty 2026-05-01 23:08:29 +00:00
validation_test.go flowcontrol: emit Required when spec.type or limitResponse.type is empty 2026-05-01 23:08:29 +00:00