add support to "exist_key" filters

Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
This commit is contained in:
Juan Pablo Garcia Ripa
2023-03-15 22:49:27 +01:00
parent cd5cf69a61
commit 57c1b4752f
6 changed files with 238 additions and 27 deletions
@@ -472,6 +472,20 @@ owner:
kind: [Group, User]
```
#### `catalogFilter`
The `catalogFilter` allow you to filter the list entities using any of the [catalog api filters](https://backstage.io/docs/features/software-catalog/software-catalog-api#filtering):
For example, if you want to show users in the `default` namespace, and groups with the `github.com/team-slug` annotation, you can do the following:
```yaml
catalogFilter:
- kind: [User]
metadata.namespace: default
- kind: [Group]
metadata.annotations.github.com/team-slug: { exists: true }
```
## `spec.steps` - `Action[]`
The `steps` is an array of the things that you want to happen part of this