Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew committed Nov 9, 2023
1 parent 3e1a23b commit eaf6436
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/snippets/proc-subscribe-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,24 @@ and a Knative Broker as the source of events, from where they are consumed.
func subscribe subscribe --filter type=com.example --filter extension=my-extension-value --source my-broker
```

To subscribe the function to events for the default broker, run the following command:

```bash
func subscribe subscribe --filter type=com.example --filter extension=my-extension-value
```

=== "kn func"

To subscribe the function to events for a given broker, run the following command:

```bash
kn func subscribe subscribe --filter type=com.example --filter extension=my-extension-value --source my-broker
```

To subscribe the function to events for the default broker, run the following command:

```bash
func subscribe subscribe --filter type=com.example --filter extension=my-extension-value
kn func subscribe subscribe --filter type=com.example --filter extension=my-extension-value
```

!!! note
Expand Down

0 comments on commit eaf6436

Please sign in to comment.