Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew committed Nov 10, 2023
1 parent 65f0911 commit d25f299
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
28 changes: 28 additions & 0 deletions docs/functions/subscribing-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,31 @@
### Procedure

--8<-- "proc-subscribe-function.md"

### Deployment with Triggers

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

=== "func"

Deploy the function with Triggers by running the command inside the project directory:

```bash
func deploy
```

=== "kn func"

Deploy the function with Triggers by running the command inside the project directory:

```bash
kn func deploy
```

!!! 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
```
11 changes: 0 additions & 11 deletions docs/snippets/proc-subscribe-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,3 @@ and a Knative Broker as the source of events, from where they are consumed.
```bash
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 d25f299

Please sign in to comment.