monokle icon indicating copy to clipboard operation
monokle copied to clipboard

Generate Template from Resources

Open olensmar opened this issue 3 years ago • 1 comments

I would like to be able to generate vanilla templates from my existing resources - something in the line of:

  • Multiselect a number of resources (could be from file, preview, cluster)
  • Provide template metadata (title, description)
  • Provide list of property names that I will use in interpolation
  • Provide a target folder

Monokle would generate a vanilla template into the specified folder. If I had provided any property names it would also generate a simple json schema with corresponding string properties - and a ui-schema with the same fields.I would have to add interpolation for schema values manually to the template files.

see https://discord.com/channels/884464549347074049/885184562026647622/935985344585826344

olensmar avatar Jan 27 '22 13:01 olensmar

For the UI, I'm thinking we could have a panel that shows the selected resources' yaml content one by one and for each yaml we can hover over each line and click to select the properties that we want to include in the forms.

After that, next steps should be to build that form based on the selected properties.

devcatalin avatar Aug 19 '22 09:08 devcatalin

Is this done? i don't see any PR for this.

chargio avatar Nov 22 '22 11:11 chargio