Description
Proposal:
When creating a template using the export
command it should optionally be possible to keep the exisiting metadata.name
Current behavior:
Every time export
is used, new random names are generated. This causes resources to be destroyed if the template is then re-applied. It also changes the order of the resources in the yaml file, which makes it hard to track the changes in version control.
Desired behavior:
The export command has a flag that tells it to use the metadata name from the existing resources.
Alternatives considered:
Using a local script to change the names after running the export command.
Use case:
This would enable a no-code+infrastucture-as-code setup, where a user can make changes in the front end, and have those changes be automatically applied to a code base, that can then be used to deploy the changes idempotently to the same environment or to a new enviroment.
It would also allow templates to be modified using the UI only and exporting again, as only the changes made by the user would be changed in the export (and not the names).