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
When using register-gen from the code-generator package to automatically generate the zz_generated.register.go file, the generated file is missing the import statements for the following packages:
k8s.io/apimachinery/pkg/runtime
k8s.io/apimachinery/pkg/runtime/schema
This issue causes compilation errors because these packages are required for the generated GroupVersion and SchemeBuilder code to function correctly.
Steps to Reproduce
Use register-gen to generate a zz_generated.register.go file.
Attempt to compile the project.
Observe that the generated file is missing the necessary import statements.
Expected Behavior
The generated zz_generated.register.go file should include the following imports by default:
Description
When using
register-gen
from thecode-generator
package to automatically generate thezz_generated.register.go
file, the generated file is missing the import statements for the following packages:k8s.io/apimachinery/pkg/runtime
k8s.io/apimachinery/pkg/runtime/schema
This issue causes compilation errors because these packages are required for the generated
GroupVersion
andSchemeBuilder
code to function correctly.Steps to Reproduce
register-gen
to generate azz_generated.register.go
file.Expected Behavior
The generated
zz_generated.register.go
file should include the following imports by default:This ensures that the generated code compiles without requiring manual modification.
Environment
code-generator
version:1.32
1.23.4
Thank you for your attention to this issue. Please let me know if further details are required.
The text was updated successfully, but these errors were encountered: