diff --git a/docs/snippets/proc-subscribe-function.md b/docs/snippets/proc-subscribe-function.md index bfafd7df068..b85239926b9 100644 --- a/docs/snippets/proc-subscribe-function.md +++ b/docs/snippets/proc-subscribe-function.md @@ -9,13 +9,13 @@ 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" @@ -23,14 +23,22 @@ 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 - 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: /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 + ```