-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional operators inclusion support #30
Comments
Service authors would test this mechanism by running a distinct COAB instance with a distinct service name e.g. By invoking the broker through usual CloudFoundry CLI, broker authors are able to test (possibly in an automated way) that their conditional operators are properly triggered depending on expected conditions: authors asserts the git commits pushed by coab as a result of their input. Service authors unit tests could potentially assert the content of the git commits for various CF CLI inputs. This |
@poblin-orange an alternative to this feature is for operators to leverage the COA pre-deploy.sh hook and use shell to conditionally remove operators symlinks generated by COA depending on the Pros of the
Cons of the
|
As a service author, in order to support different service plans, and different arbitrary params, I need to conditionally include some bosh operators depending on OSB input data received during service provisionning or unprovisionning
Proposal:
Given a user input provided by coab as
coab-vars.yml
in #29and a service model with files ending with a suffix matching the
-when-<property-path>-equals-<property-value>
where<property-path>
designates the path to a key within thecoab-vars.yml
structure. Supported path include toplevel properties such asplan_id
, or parameters top level keys such asparameters.roadmin
<property-value>
represents a value to match as string case insensitive litteral such astrue
or0.8642
then coab would generate conditionnally include the operators files depending on their matching of
coab-vars.yml
(while preserving systematic inclusion of other operators), resulting in the following coab bosh template directoryIn order to avoid the feature being used to bypass security, the following restrictions are imposed
<property-path>
only supports basic path designation<property-value>
only supports exact string case insensitive matches.In the future, we might consider additional matcher syntaxes such as
-when<property-path>-isdefined
(e.g.-when-previous_values.plan_id-isdefined
to conditionally include operator only during service plan update)The text was updated successfully, but these errors were encountered: