Skip to content

Commit

Permalink
Switched from Trigger to Broker
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr committed Aug 29, 2024
1 parent cd88715 commit 73fa8a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/eventing/features/authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
name: my-broker
- selector:
apiVersion: eventing.knative.dev/v1
kind: Trigger
kind: Broker
matchLabels:
app: special-app
from:
Expand Down Expand Up @@ -81,14 +81,14 @@ There are two ways to define these targets:
```
2. `to.selector`:
* **Definition**: Uses a label selector to match multiple resources of a specific type.
* **Example**: The `EventPolicy` includes a `Trigger` with labels matching `app: special-app`. This means the `EventPolicy` applies to all `Triggers` with these labels.
* **Example**: The `EventPolicy` includes a `Broker` with labels matching `app: special-app`. This means the `EventPolicy` applies to all `Brokers` with these labels.
* **Use Case**: Use `to.selector` when you want the `EventPolicy` to apply to a group of resources that share common labels.

```yaml
to:
- selector:
apiVersion: eventing.knative.dev/v1
kind: Trigger
kind: Broker
matchLabels:
app: special-app
```
Expand Down

0 comments on commit 73fa8a6

Please sign in to comment.