Skip to content

Commit

Permalink
Adding hint for deploy
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 eaf6436 commit c92a757
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docs/snippets/proc-subscribe-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,36 @@ and a Knative Broker as the source of events, from where they are consumed.
To subscribe the function to events for a given broker, run the following command:

```bash
func subscribe subscribe --filter type=com.example --filter extension=my-extension-value --source my-broker
func 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
func 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
kn func 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
kn func subscribe subscribe --filter type=com.example --filter extension=my-extension-value
kn func subscribe --filter type=com.example --filter extension=my-extension-value
```

!!! note
When invoking `func deploy` the CLI will create Knative Triggers for the function.

!!! Success "Expected output"
```{ .bash .no-copy }
🙌 Function image built: <registry>/hello:latest
🎯 Creating Triggers on the cluster
✅ Function deployed in namespace "default" and exposed at URL:
http://hello.default.127.0.0.1.sslip.io
```

0 comments on commit c92a757

Please sign in to comment.