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
: This is where you specify the attribute that you want to search for. By doing so, you can add new attributes to the nodes that match based off of what you input this section.
12
+
: This is where you specify the attribute that you want to search for. By doing so, you can add new attributes to the nodes that match based off of what you input this section. Each match is entered on its own line using the format `key<operator>value`, where `key` is the attribute name. All matches must succeed for a node to be enhanced. See [Match Operators](#match-operators) for the supported operators.
13
13
14
14
-**Attributes to Add**
15
15
: This is where you specify the new attributes that you wish to add to the nodes that matched the attributes you specified above. So, any attributes you put here will show up on all the nodes that match based off your Attribute Matches input.
16
16
17
17
-**Tags to Add**
18
18
: This is where you specify any tags you want added to the nodes that match. You can enter numerous tags, all separated by a comma.
19
19
20
+
-**Enable Attribute Substitution**
21
+
: When enabled, values in **Attributes to Add** and **Tags to Add** can reference a node's existing attributes using `${attribute}` syntax. For example, `image-${ec2.imageId}` as a tag, or `newattr=some-${oldattr}/${otherattr}` as an attribute. References to attributes that do not exist on the node resolve to an empty string. This option is disabled by default, so existing configurations are unaffected.
22
+
20
23
:::tip Heads Up
21
24
If you would like to match the node name attribute, use 'nodename' instead of 'name'. The latter one works at 'Node filter' context only.
22
25
:::
23
26
27
+
### Match Operators
28
+
29
+
The **Attribute Matches** field supports the following operators. Most operators compare an attribute against a `value`, while the presence operators only check whether an attribute exists.
30
+
31
+
| Operator | Match | Value |
32
+
|---|---|---|
33
+
|`==`| Equality match | Required |
34
+
|`!=`| Inequality match | Required |
35
+
|`=~`| Regular expression match | Required |
36
+
|`!~`| Negative regular expression match | Required |
37
+
|`~~`| Is present match (attribute exists) | Not used |
38
+
|`!!`| Not present match (attribute is absent) | Not used |
39
+
24
40
### Attribute Match Examples
25
41
26
42
#### Assign a Node Executor to a Subset of Node Inventory
0 commit comments