-
Notifications
You must be signed in to change notification settings - Fork 448
Open
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Description
In #818 support for generating ApplyConfiguration was added via the applyconfiguration generator. However, it uses different variable name (SchemeGroupVersion
) than the name generated by kubebuilder (GroupVersion
). This results in a build failures out of the box.
# sigs.k8s.io/controller-tools/pkg/applyconfiguration/testdata/cronjob/api/v1/applyconfiguration
api/v1/applyconfiguration/utils.go:19:10: undefined: v1.SchemeGroupVersion
The variable name from kubebuilder is set in the groupversion_info.go
template:
The variable name in the upstream applyconfiguration-gen is set in the GenerateType
implementation:
The fix for users is simple (SchemeGroupVersion = GroupVersion
) but it would be nice if the files generated here work out of the box with those from kubebuilder.
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.