You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: docs/versioned/eventing/channels/subscriptions.md
+7-22Lines changed: 7 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,35 +180,20 @@ You can update an existing Subscription by using the `kn` CLI tool or by applyin
180
180
=== "kn"
181
181
Use the `kn subscription update`command to modify an existing Subscription.
182
182
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:**
205
184
206
185
```bash
207
186
kn subscription update mysubscription \
208
187
--sink ksvc:myservice \
188
+
--sink-dead-letter ksvc:error-handler \
209
189
--sink-reply channel:reply-channel
210
190
```
211
191
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
+
212
197
!!! note
213
198
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.
0 commit comments