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
api: make optional fields pointers for proper zero value handling
Bump kube-api-linter version and enable the optionalfields linter check.
This enforces that optional fields use pointers to properly distinguish
between unset values and zero values.
Changes include:
- Enable optionalfields linter in .golangci.yml
- Convert optional string/bool/int fields to pointers across API types
- Update controller code to use ptr.Deref() for pointer fields
- Fix test assertions to use HaveValue() for pointer comparisons
0 commit comments