enaml-ops / omg-cli

it's kind of like an (o)ps (m)anager in (g)olang
Apache License 2.0
15 stars 11 forks source link

Is it posible to write universal plugin that would work with any PCF tile? #51

Open s-matyukevich opened 7 years ago

s-matyukevich commented 7 years ago

Now when you work with omg you need to create separate plugin for each product. This includes a lot of extra work, but the biggest issue with this approach is that it is hard to maintain all plugins up to date: if new properties were added to manifest in a new version of the product you need to modify plugin itself.

My idea is to write a plugin that would extract any PCF tile, and then analyze it manifest. Actually all information that is needed to build a bOSH manifest already exists in PCF tile manifest, it should be just a matter of yml manipulation. We also can extract parameters from the PCF tile manifest and their default values and convert them to command line parameters.