Application Selectors
An Application may have zero or more selectors assigned to it. These selectors are limited to the Application they are associated with. The selectors policies determine where the Application can be deployed during the Deployment planning stage.
Understand how selector operators work on OGC.
Understanding Selector Operators
A selector operator defines the rules to be used when matching an associated selector with Application Labels during deployment.
Value | Multiplicity | Description |
---|---|---|
Exists | 0 | A Label with matching key property must exist, irrespective of its value. |
NotExists | 0 | A Label with matching key property must not exist, irrespective of its value. |
Equals | 1 | A Label with matching key property must have a value property that matches the associated Selector values property. |
NotEquals | 1 | A Label with matching key property must not have a value property that matches the associated Selector values property. |
In | > 0 | A Label with matching key property must have a value property that matches one of the associated Selector values property. |
NotIn | > 0 | A Label with matching key property must not have a value property that matches one of the associated Selectors values property. |
MinOf | 0 | A Label with matching key property must exist, and if multiple nodes have the same label this one has the lowest integer value. |
MaxOf | 0 | A Label with matching key property must exist, and if multiple nodes have the same label this one has the highest integer value. |
For MinOf
and MaxOf
operations, the Label value must be formatted as an integer value comprising only digits (i.e. no decimal or thousands separators). If the value does not conform to this specification, the label is treated as not existing.
Add Selectors
The selectors are added in key-value
pairs that match to the labels on Nodes. Each selector uses a Selector Operator defining the Node's matching criteria. To add selectors,
- Click on
+ Add
in the Application Selectors tab. - Click on
Save
.
Edit Selectors
When needed, you can update the selectors.
- Go to the Application Selectors tab.
- Click on
Edit
to make changes. - Then click on
Save
.