From d25f299e45c94759366d2ba04f7ec5240b1211af Mon Sep 17 00:00:00 2001 From: Matthias Wessendorf Date: Fri, 10 Nov 2023 08:00:02 +0100 Subject: [PATCH] Updates Signed-off-by: Matthias Wessendorf --- docs/functions/subscribing-functions.md | 28 ++++++++++++++++++++++++ docs/snippets/proc-subscribe-function.md | 11 ---------- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/docs/functions/subscribing-functions.md b/docs/functions/subscribing-functions.md index 8d8c61ead19..53fb4e44db6 100644 --- a/docs/functions/subscribing-functions.md +++ b/docs/functions/subscribing-functions.md @@ -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: /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 + ``` diff --git a/docs/snippets/proc-subscribe-function.md b/docs/snippets/proc-subscribe-function.md index b85239926b9..d8c2654f793 100644 --- a/docs/snippets/proc-subscribe-function.md +++ b/docs/snippets/proc-subscribe-function.md @@ -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: /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 - ```