#Template Parameter Editing Post-creation

5 messages · Page 1 of 1 (latest)

crystal bay
#

Hello all,

I've successfully implemented Backstage templates to create new Kubernetes manifests with parameters rendered according to our template form. However, users now need to edit these parameters after creation without manually editing YAML files, making commits, and going through the standard Git workflow.

I'm looking for a way to "re-open" template parameters in a form-based UI after K8s manifests have been created. Ideally, this would:
Extract existing parameter values from the created manifests
Present them in an editable form (similar to the original template form)
Re-render template files with updated parameters
Apply changes through a PR when submitted

Questions :
Has anyone implemented a solution for editing parameters created by backstage template post-creation?
Are there any open-source implementations or examples available?
Does Backstage core plugins offer any built-in functionality for this use case?
What's the recommended approach: custom plugin, template actions, or something else?

Any guidance, examples, or pointers to implementations would be greatly appreciated!

Thank you

native ridge
# crystal bay Hello all, I've successfully implemented Backstage templates to create new Kube...

We have built something similar that is opensource in the repo https://github.com/terasky-oss/backstage-plugins
The plugins that are relevant are the kubernetes ingestor which can auto generate software templates for CRDs and crossplane XRDs as well as ingest kubernetes resources as components. There is then the entity scaffolder which adds a tab on entity pages to access specific scaffolder templates. The other is the updater plugin which adds a template and some needed field extensions for the scaffolder to be able to pull in the manifest from git, pull the api definition of the CRD from the registered API in backstage created by the ingestor plugin, and generate a dynamic form based on the api schema pre filled with the data from the manifest in git. It then will create a PR for you with the needed change in github

GitHub

Backstage Plugins Developed by TeraSky. Contribute to TeraSky-OSS/backstage-plugins development by creating an account on GitHub.

crystal bay
#

Thanks @native ridge will check this

crystal bay
#

Hey @native ridge Thanks for open sourcing this plugin. Was really helpful to achieve my usecase. I have a question now, after the fields are pre-populated and modified. After i proceed with review button and if I go back again the edits are going off and it's fetching the latest state again from the file. How did you handle this?

native ridge
#

I dont handle that in the plugin currently