fix formatting and add response output (#2504)

Signed-off-by: Sarthak Sharma <t-sartsharma@microsoft.com>

Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
Sarthak Sharma 2022-06-10 22:56:10 +05:30 committed by GitHub
parent 5ba9f2a97a
commit e7711c1d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -37,6 +37,8 @@ spec:
secretKeyRef:
name: kafka-secrets
key: saslPasswordSecret
- name: initialOffset # Optional. Used for input bindings.
value: "newest"
- name: maxMessageBytes # Optional.
value: 1024
- name: version # Optional.
@ -54,9 +56,9 @@ spec:
| authRequired | Y | Input/Output | Enable [SASL](https://en.wikipedia.org/wiki/Simple_Authentication_and_Security_Layer) authentication with the Kafka brokers. | `"true"`, `"false"` |
| saslUsername | N | Input/Output | The SASL username used for authentication. Only required if `authRequired` is set to `"true"`. | `"adminuser"` |
| saslPassword | N | Input/Output | The SASL password used for authentication. Can be `secretKeyRef` to use a [secret reference]({{< ref component-secrets.md >}}). Only required if `authRequired` is set to `"true"`. | `""`, `"KeFg23!"` |
| initialOffset | N | The initial offset to use if no offset was previously committed. Should be "newest" or "oldest". Defaults to "newest". | `"oldest"` |
| initialOffset | N | Input | The initial offset to use if no offset was previously committed. Should be "newest" or "oldest". Defaults to "newest". | `"oldest"` |
| maxMessageBytes | N | Input/Output | The maximum size in bytes allowed for a single Kafka message. Defaults to 1024. | `2048` |
| version | N | Kafka cluster version. Defaults to 1.0.0 | `1.0.0`
| version | N | Input/Output | Kafka cluster version. Defaults to 1.0.0 | `1.0.0`
## Binding support
@ -88,6 +90,10 @@ curl -X POST http://localhost:3500/v1.0/bindings/myKafka \
}'
```
### Response
An HTTP 204 (No Content) and empty body will be returned if successful.
## Related links
- [Basic schema for a Dapr component]({{< ref component-schema >}})