Skip to content

Commit

Permalink
add dapr schemas (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlisAG authored May 22, 2023
1 parent 965e842 commit 696c7c6
Show file tree
Hide file tree
Showing 5 changed files with 833 additions and 0 deletions.
96 changes: 96 additions & 0 deletions dapr.io/component_v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"description": "Component describes an Dapr component type",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"auth": {
"description": "Auth represents authentication details for the component",
"properties": {
"secretStore": {
"type": "string"
}
},
"required": [
"secretStore"
],
"type": "object",
"additionalProperties": false
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"scopes": {
"items": {
"type": "string"
},
"type": "array"
},
"spec": {
"description": "ComponentSpec is the spec for a component",
"properties": {
"ignoreErrors": {
"type": "boolean"
},
"initTimeout": {
"type": "string"
},
"metadata": {
"items": {
"description": "MetadataItem is a name/value pair for a metadata",
"properties": {
"name": {
"type": "string"
},
"secretKeyRef": {
"description": "SecretKeyRef is a reference to a secret holding the value for the metadata item. Name is the secret name, and key is the field in the secret.",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object",
"additionalProperties": false
},
"value": {
"x-kubernetes-preserve-unknown-fields": true
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"type": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"metadata",
"type",
"version"
],
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
Loading

0 comments on commit 696c7c6

Please sign in to comment.