generated from crossplane/provider-template
-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The provider-sql currently does not support the crossplane.io/external-name annotation for managed resources like Databases and Roles. This is a commonly used pattern in other Crossplane providers to allow logical names in configuration to differ from physical resource names especially important when integrating with existing systems or naming constraints.
Additionally, provider-sql currently supports creation of objects with hyphens (-) in their names, such as:
metadata:
name: postgresql-role-with-hyphen
However, hyphens are not valid unquoted identifiers in PostgreSQL (they are interpreted as subtraction operators). This can cause runtime errors or require manual quoting of names in SQL, which is error-prone and hard to manage.
Request:
- Add support for
metadata.annotations.crossplane.io/external-name
so users can explicitly define the physical name to be used in the target SQL database. - This would allow:
- Importing existing resources with incompatible or legacy names.
- Overriding default generated names.
- Handling reserved or invalid characters (like hyphens) cleanly.
- Ensure that physical names are safely quoted in SQL if they contain special characters (like -), or advise explicitly on quoting strategy.
dawidmalina
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
No status