You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TOSCA's current policy syntax supports imperative policies only. These policies follow an event-condition-action pattern. We should add support for declarative policies that follow a context-capability-constraint pattern and express invariant conditions that must hold true at all times. Ironically, all the policy examples in the spec (e.g. colocation and anti-colocation placement policies) are examples of declarative policies, but TOSCA currently does not include syntax that allows one to define the semantics of such policies.
The text was updated successfully, but these errors were encountered:
I envision declarative policies to be defined using a set of invariants, i.e. Boolean expressions that must hold true at all times. However, this will likely require extensions to our TOSCA Path syntax to allow get_property functions to access members of a group. For example:
TOSCA's current policy syntax supports imperative policies only. These policies follow an
event-condition-action
pattern. We should add support for declarative policies that follow acontext-capability-constraint
pattern and express invariant conditions that must hold true at all times. Ironically, all the policy examples in the spec (e.g. colocation and anti-colocation placement policies) are examples of declarative policies, but TOSCA currently does not include syntax that allows one to define the semantics of such policies.The text was updated successfully, but these errors were encountered: