Skip to content

Commit 231433b

Browse files
feat: add metadata field to Subscription spec (#4970)
Signed-off-by: farmer <farmerchillax@outlook.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
1 parent 2415746 commit 231433b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

daprdocs/content/en/reference/resource-specs/subscription-schema.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ spec:
3838
enabled: <REPLACE-WITH-BOOLEAN-VALUE>
3939
maxMessagesCount: <REPLACE-WITH-VALUE>
4040
maxAwaitDurationMs: <REPLACE-WITH-VALUE>
41+
metadata: <REPLACE-WITH-METADATA-OBJECT> # Optional
4142
scopes:
4243
- <REPLACE-WITH-SCOPED-APPIDS>
4344
```
@@ -51,6 +52,7 @@ scopes:
5152
| pubsubname | N | The name of your pub/sub component. | `pubsub` |
5253
| deadLetterTopic | N | The name of the dead letter topic that forwards undeliverable messages. | `poisonMessages` |
5354
| bulkSubscribe | N | Enable bulk subscribe properties. | `true`, `false` |
55+
| metadata | N | Set subscribe metadata. | `{"key": "value"}` |
5456

5557

5658
## `v1alpha1` format
@@ -67,6 +69,7 @@ spec:
6769
route: <REPLACE-WITH-ROUTE-NAME> # Required
6870
pubsubname: <REPLACE-WITH-PUBSUB-NAME> # Required
6971
deadLetterTopic: <REPLACE-WITH-DEAD-LETTER-TOPIC-NAME> # Optional
72+
metadata: <REPLACE-WITH-METADATA-OBJECT> # Optional
7073
bulkSubscribe: # Optional
7174
- enabled: <REPLACE-WITH-BOOLEAN-VALUE>
7275
- maxMessagesCount: <REPLACE-WITH-VALUE>
@@ -83,6 +86,7 @@ scopes:
8386
| route | Y | The endpoint to which all topic messages are sent. | `/checkout` |
8487
| pubsubname | N | The name of your pub/sub component. | `pubsub` |
8588
| deadlettertopic | N | The name of the dead letter topic that forwards undeliverable messages. | `poisonMessages` |
89+
| metadata | N | Set subscribe metadata. | `{"key": "value"}` |
8690
| bulksubscribe | N | Enable bulk subscribe properties. | `true`, `false` |
8791

8892
## Related links

0 commit comments

Comments
 (0)