Conditional feature properties and option values in config #298
Closed
evilhamsterman
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've run into several cases where it would have been nice to be able to make a property of a feature conditional on an option.
For example there are multiple "Persistence" features. These setup volumes to cache data like authentication tokens for apps like the GitHub, Azure, AWS clis. The logic of setting up persistence can easily be handled in install.sh, however they have to be separate feature from the feature to install said cli tools because the
mounts
property is either specified as part of the feature or not.If
mounts
or individual mounts were able to be made conditional on an option, that functionality could be built into the installer feature, and make it easier to do similar for other apps. Even just allowing accessing option and other values in other properties could be helpful for dynamic options.Example below would create a dynamic volume depending on whether persistence is enable or not. Or it would bind an local path to an internal path based on an option.
Beta Was this translation helpful? Give feedback.
All reactions