Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update component schema with current values #3743

Merged
merged 9 commits into from
Sep 25, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Dapr defines and registers components using a [resource specifications](https://
```yaml
apiVersion: dapr.io/v1alpha1
kind: Component
auth:
hhunter-ms marked this conversation as resolved.
Show resolved Hide resolved
metadata:
name: [COMPONENT-NAME]
namespace: [COMPONENT-NAMESPACE]
Expand All @@ -24,6 +25,9 @@ spec:
metadata:
- name: [METADATA-NAME]
value: [METADATA-VALUE]
scopes:
- [APPID]
- [APPID]
```

## Spec fields
Expand All @@ -32,6 +36,8 @@ spec:
|--------------------|:--------:|---------|---------|
| apiVersion | Y | The version of the Dapr (and Kubernetes if applicable) API you are calling | `dapr.io/v1alpha1`
| kind | Y | The type of resource. For components is must always be `Component` | `Component`
| auth | N | The authentication details for the component |
hhunter-ms marked this conversation as resolved.
Show resolved Hide resolved
| scopes | N | The applications the component is limited to, specified by their app IDs | `order-processor`, `checkout`
| **metadata** | - | **Information about the component registration** |
| metadata.name | Y | The name of the component | `prod-statestore`
| metadata.namespace | N | The namespace for the component for hosting environments with namespaces | `myapp-namespace`
Expand All @@ -41,6 +47,7 @@ spec:
| spec.initTimeout | N | The timeout duration for the initialization of the component. Default is 5s | `5m`, `1h`, `20s`
| spec.ignoreErrors | N | Tells the Dapr sidecar to continue initialization if the component fails to load. Default is false | `false`
| **spec.metadata** | - | **A key/value pair of component specific configuration. See your component definition for fields**|
| spec.metadata.name | Y | The name of the component-specific property and its value | `- name: secretsFile` <br> `value: secrets.json`

### Templated metadata values

Expand Down
Loading