ci: add kube-api-linter and fix doc and marker findings in api types#416
ci: add kube-api-linter and fix doc and marker findings in api types#416Mesut Oezdil (mesutoezdil) wants to merge 2 commits into
Conversation
748a99c to
4910796
Compare
|
And sorry if my comment sends you on a wild goose chase. I am not really involved in this project but I follow it for interest. cc Benjamin Elder (@BenTheElder) Tim Hockin (@thockin) I think having kube-api-linter is useful btu not sure what maintainers think. |
5126a9d to
3f964cb
Compare
3f964cb to
8140409
Compare
|
Benjamin Elder (@BenTheElder) |
Benjamin Elder (BenTheElder)
left a comment
There was a problem hiding this comment.
In the future I'd recommend:
- split introducing the linter into one commit, and fixing the failure types into a commit per grouped type
- prevent including merge commits
this time I think it's small enough to just squash to one commit on merge.
Tim Hockin (@thockin) Julian Gutierrez Oschmann (@juli4n) PTAL
thx for feedback |
Part of #207, following the plan discussed there with Julian Gutierrez Oschmann (@juli4n) and Kevin Hannon (@kannon92): plumbing plus the non invasive fixes first, with the existing invasive findings excluded so new APIs do not regress (as Kevin Hannon (@kannon92) suggested in #207 (comment)). The linter itself was originally suggested by Benjamin Elder (@BenTheElder) in #188.
Plumbing:
Fixes in pkg/api/v1alpha1 (doc and marker only, no Go API change):
Generated CRDs regenerated. Structural schema changes are only the conditions listType/listMapKey and sandboxClass no longer in the required list (it is defaulted, so behavior is the same); the rest is description text.
Note: my earlier count of 50 issues in #207 was capped by the default golangci-lint issue limit. With the cap removed the real total is 86; the extra ones are requiredfields (20) and ssatags (4), both in the excluded set above.
Test plan