Skip to content

Commit b8c3e19

Browse files
authored
Fixing string Exist to be Exists, so it works properly in generated PlacementRules. (#54)
Signed-off-by: fgharo <[email protected]>
1 parent 9f73ae4 commit b8c3e19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ func (p *Plugin) createPlacement(placementConfig *types.PlacementConfig, nameDef
11631163
"key": label,
11641164
}
11651165
if resolvedSelectors[label] == "" {
1166-
matchExpression["operator"] = "Exist"
1166+
matchExpression["operator"] = "Exists"
11671167
} else {
11681168
matchExpression["operator"] = "In"
11691169
matchExpression["values"] = []string{resolvedSelectors[label]}

internal/plugin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ spec:
10551055
values:
10561056
- red hat
10571057
- key: doesIt
1058-
operator: Exist
1058+
operator: Exists
10591059
- key: game
10601060
operator: In
10611061
values:
@@ -1102,7 +1102,7 @@ spec:
11021102
values:
11031103
- red hat
11041104
- key: doesIt
1105-
operator: Exist
1105+
operator: Exists
11061106
- key: game
11071107
operator: In
11081108
values:

0 commit comments

Comments
 (0)