Tim Hockin
|
252d584cb7
|
Implement validation-gen lint for CI
Results in errors like:
```
$ ./hack/verify-api-lint.sh
+++ [0317 09:00:04] Generating validation code for 69 targets
F0317 09:00:05.637556 1049736 targets.go:363] lint failed:
type k8s.io/api/core/v1.PodAffinityTerm:
field LabelSelector: conflicting tags: {+k8s:optional, +k8s:required}: fields cannot be both optional and required
field Namespaces: conflicting tags: {+default, +k8s:required}: fields with default values are always optional
!!! [0317 09:00:05] Call tree:
!!! [0317 09:00:05] 1: hack/update-codegen.sh:1132 codegen::validation(...)
```
|
2025-03-21 08:20:04 -07:00 |
|