You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds sigs.k8s.io/kube-api-linter (KAL) as a golangci-lint v2 module
plugin and wires it into a new CI job that lints the API type
definitions in ./apis against Kubernetes API conventions.
Only the commentstart rule is enabled for now: it requires field
godoc comments to start with the lowerCamelCase JSON field name, and
its fixes are purely textual. Other KAL default rules
(optionalorrequired, nonpointerstructs, arrayofstruct, nomaps) were
evaluated but not enabled here, since applying them can suggest
changing exported Go field types (e.g. value -> pointer with
omitempty), which is a wire-compatibility decision that needs
separate discussion, not something to fold into enabling a linter.
Fixes the ~280 existing commentstart violations this surfaced across
apis/, and regenerates CRDs and manifest_staging/ to match the
updated doc comments.
Fixes#4219
Signed-off-by: Patience Mpofu <pgmpofu@gmail.com>
0 commit comments