Skip to main content

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.

ValueMultiplicityDescription
Exists0A Label with matching key property must exist, irrespective of its value.
NotExists0A Label with matching key property must not exist, irrespective of its value.
Equals1A Label with matching key property must have a value property that matches the associated Selector values property.
NotEquals1A Label with matching key property must not have a value property that matches the associated Selector values property.
In> 0A Label with matching key property must have a value property that matches one of the associated Selector values property.
NotIn> 0A Label with matching key property must not have a value property that matches one of the associated Selectors values property.
MinOf0A Label with matching key property must exist, and if multiple nodes have the same label this one has the lowest integer value.
MaxOf0A Label with matching key property must exist, and if multiple nodes have the same label this one has the highest integer value.
note

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,

  1. Click on + Add in the Application Selectors tab.
  2. Click on Save.

Edit Selectors

When needed, you can update the selectors.

  1. Go to the Application Selectors tab.
  2. Click on Edit to make changes.
  3. Then click on Save.