cf-platform-eng / tile-generator

Tools to develop, package, test, and deploy software on Pivotal Cloud Foundry
https://docs.pivotal.io/tiledev/tile-generator.html
Apache License 2.0
87 stars 60 forks source link

Support condition/disable for runtime_configs #302

Open HDYA opened 5 years ago

HDYA commented 5 years ago

It would be for flexible to have enable conditions for runtime_configs

Specifically, we have a scenario that one of our tile have the same BOSH release with PAS 2.4+. Given that the version number are different, runtime configs will conflict between our tile with PAS. If there is a condition for runtime_configs, we can implement a switch to hide the runtime config that may cause the conflict.

cf-gitbot commented 5 years ago

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

mboldt commented 5 years ago

If I understand correctly, you would like to change your runtime config based on which PAS version is deployed. Unfortunately, this is not possible in a tile.

If you want to change your runtime config based on user configuration, you can use a named_manifest with a selector type property. Some details here: https://docs.pivotal.io/tiledev/2-4/property-template-references.html#named-manifest