Re-vendor k8s.io/kube-openapi

./hack/pin-dependency.sh k8s.io/kube-openapi 778a5567bc1edaed92a4de9c07f90199c67953fa

./hack/update-vendor.sh
This commit is contained in:
Tim Hockin
2023-11-13 10:59:57 -08:00
parent 44060fb1f3
commit 1f55357d99
53 changed files with 77 additions and 76 deletions

View File

@@ -33,7 +33,8 @@ func (l *ListTypeMissing) Validate(t *types.Type) ([]string, error) {
continue
}
if m.Type.Kind == types.Slice && !hasListType {
// All slice fields must have a list-type tag except []byte
if m.Type.Kind == types.Slice && m.Type.Elem != types.Byte && !hasListType {
fields = append(fields, m.Name)
continue
}