fabric8-launcher/launcher-application

Implement Runtime/Version filtering

Closed this issue · 0 comments

Add filtering for Runtimes and Versions using the ENV vars LAUNCHER_FILTER_RUNTIME and LAUNCHER_FILTER_VERSION respectively.

Both can take a regular expression that will be used to match against the id field of each runtime/version. A successful match will include the runtime/version in the catalog.

To make it easy to exclude runtimes/versions using a regex we allow the first character of the regex to be a !. In that case the regex will be everything after the exclamation mark but the end result will be that any runtimes/versions matching the regex will be excluded from the catalog.