Skip to content

Commit

Permalink
docs: document matchExpressions field for post-selectors (#13646)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
crenshaw-dev authored Jun 2, 2023
1 parent fd5f3c4 commit c8e44ed
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/operator-manual/applicationset/Generators-Post-Selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,24 @@ spec:
```
The List generator + Post Selector generates a single set of parameters:
```yaml
- cluster: engineering-dev
url: https://kubernetes.default.svc
env: staging
```
```
It is also possible to use `matchExpressions` for more powerful selectors.

```yaml
spec:
generators:
- clusters: {}
selector:
matchExpressions:
- key: server
operator: In
values:
- https://kubernetes.default.svc
- https://some-other-cluster
```

0 comments on commit c8e44ed

Please sign in to comment.