-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Description
Problem
When multiple CRDs share the same kind (e.g., Backup exists in both velero.io and postgresql.cnpg.noobaa.io), the class-generator has no way to let the user specify which API group they want. Running class-generator -k Backup may generate the wrong one.
Current Behavior
class-generator -k Backup --dry-rungenerates for an unintended API groupclass-generator -k backups.velero.io --dry-runfails because-konly accepts kind names- No
--api-groupor similar option exists to disambiguate - After
--update-schema, the mapping may not even contain the kind, yet it still picks one
Expected Behavior
Users should be able to specify which API group to use when a kind exists in multiple groups.
Reported in
Requirements
- Add support for specifying API group when kind is ambiguous (e.g.,
--api-group velero.ioor-k Backup.velero.io) - When multiple API groups exist for the same kind and no group is specified, prompt the user to choose
- Update help text and documentation
Deliverables
- CLI option for API group selection
- Interactive prompt when kind is ambiguous
- Tests for disambiguation logic
- Updated CLI help text
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels