-
Notifications
You must be signed in to change notification settings - Fork 44
Description
The CRD and RBAC file names in the kubewarden-controller repository currently differ from the default names generated by kubebuilder/controller-gen. This mismatch requires manual intervention after running make generate-controller, forcing developers to manually merge the generated files with the custom-named files. This creates friction in the development workflow and introduces potential for errors.
The proposal is to rename these files to match the kubebuilder/controller-gen defaults, enabling automated generation without manual merging. For RBAC files that require custom labels and annotations, the generation process can be adjusted to inject these customizations automatically.
Acceptance Criteria
- Rename CRD files to match kubebuilder/controller-gen default naming convention
- Rename RBAC files (
role.yaml,rbac.yaml) to match kubebuilder defaults - Update Helm chart references to point to the renamed files
- Adjust code generation to automatically add required labels and annotations to RBAC files
- Verify
make generate-controllercompletes without requiring manual file merging - Update documentation to reflect the new file naming convention
- Check how the CRDs inline html for docs.kubewarden.io. If needed, simplify and drop those inlined html patches.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Pending review