mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-21 09:29:43 -04:00
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. |
||
|---|---|---|
| .. | ||
| validation.go | ||
| validation_test.go | ||