Skip to content

Commit 09f334f

Browse files
committed
docs: simplify update examples to single comprehensive example
Consolidated three separate update examples into one that shows all parameters together. Makes the documentation more concise while still covering all update scenarios.
1 parent 3ae7f66 commit 09f334f

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

docs/versioned/eventing/channels/subscriptions.md

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -180,35 +180,20 @@ You can update an existing Subscription by using the `kn` CLI tool or by applyin
180180
=== "kn"
181181
Use the `kn subscription update` command to modify an existing Subscription.
182182

183-
**Example 1: Update the Sink of a Subscription**
184-
185-
To change the Subscriber (Sink) of an existing Subscription named `mysubscription` to a different Knative Service:
186-
187-
```bash
188-
kn subscription update mysubscription \
189-
--sink ksvc:new-service
190-
```
191-
192-
**Example 2: Add a Dead Letter Sink**
193-
194-
To add or update the dead letter sink for event delivery failures:
195-
196-
```bash
197-
kn subscription update mysubscription \
198-
--sink ksvc:myservice \
199-
--sink-dead-letter ksvc:error-handler
200-
```
201-
202-
**Example 3: Update the Reply Sink**
203-
204-
To change where reply events are sent:
183+
**Example:**
205184

206185
```bash
207186
kn subscription update mysubscription \
208187
--sink ksvc:myservice \
188+
--sink-dead-letter ksvc:error-handler \
209189
--sink-reply channel:reply-channel
210190
```
211191

192+
You can update individual parameters as needed:
193+
- `--sink`: Change the subscriber (destination for events)
194+
- `--sink-dead-letter`: Add or update the dead letter sink for failed deliveries
195+
- `--sink-reply`: Update where reply events are sent
196+
212197
!!! note
213198
When updating a Subscription, you must provide all the configuration parameters you want to keep. Any parameters not specified in the update command will use default values.
214199

0 commit comments

Comments
 (0)