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
feat: add non-fatal warning system for code generation diagnostics
Add a warning infrastructure that mirrors the existing error reporting
system but is non-fatal. The first use case is warning about pointers
as map values, which is supported but not recommended per Kubernetes
API conventions.
- Add Package.Warnings field and AddWarning method to pkg/loader
- Add PrintWarnings and VisitPackages helper functions
- Add Runtime.PrintWarnings method to pkg/genall
- Call PrintWarnings after successful generation in controller-gen
- Emit warning when pointers are used as map values in CRD schemas
- Add tests for pointer map value warning and non-warning cases
Closes: #434
0 commit comments