mirror of https://github.com/dapr/docs.git
block out the other schemas
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
parent
76b869cb81
commit
3770cf0712
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
type: docs
|
||||
title: "Component schema"
|
||||
linkTitle: "Component schema"
|
||||
title: "Component spec"
|
||||
linkTitle: "Component"
|
||||
weight: 1000
|
||||
description: "The basic schema for a Dapr component"
|
||||
description: "The basic spec for a Dapr component"
|
||||
---
|
||||
|
||||
Dapr defines and registers components using a [CustomResourceDefinition](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/). All components are defined as a CRD and can be applied to any hosting environment where Dapr is running, not just Kubernetes.
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
type: docs
|
||||
title: "HTTPEndpoint spec"
|
||||
linkTitle: "HTTPEndpoint spec"
|
||||
description: "The HTTPEndpoint resource spec"
|
||||
weight: 3000
|
||||
linkTitle: "HTTPEndpoint"
|
||||
description: "The basic spec for a Dapr HTTPEndpoint resource"
|
||||
weight: 4000
|
||||
aliases:
|
||||
- "/operations/httpEndpoints/"
|
||||
---
|
||||
|
|
|
@ -1,7 +1,143 @@
|
|||
---
|
||||
type: docs
|
||||
title: "Resiliency schema"
|
||||
linkTitle: "Resiliency schema"
|
||||
weight: 2000
|
||||
description: "The basic schema for a Dapr component"
|
||||
title: "Resiliency spec"
|
||||
linkTitle: "Resiliency spec"
|
||||
weight: 3000
|
||||
description: "The basic spec for a Dapr resiliency resource"
|
||||
---
|
||||
|
||||
|
||||
```yml
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.5.0
|
||||
creationTimestamp: null
|
||||
name: resiliencies.dapr.io
|
||||
labels:
|
||||
app.kubernetes.io/part-of: "dapr"
|
||||
spec:
|
||||
group: dapr.io
|
||||
names:
|
||||
kind: Resiliency
|
||||
listKind: ResiliencyList
|
||||
plural: resiliencies
|
||||
singular: resiliency
|
||||
categories:
|
||||
- dapr
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
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
|
||||
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:
|
||||
properties:
|
||||
policies:
|
||||
properties:
|
||||
circuitBreakers:
|
||||
additionalProperties:
|
||||
properties:
|
||||
interval:
|
||||
type: string
|
||||
maxRequests:
|
||||
type: integer
|
||||
timeout:
|
||||
type: string
|
||||
trip:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
retries:
|
||||
additionalProperties:
|
||||
properties:
|
||||
duration:
|
||||
type: string
|
||||
maxInterval:
|
||||
type: string
|
||||
maxRetries:
|
||||
type: integer
|
||||
policy:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
timeouts:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
targets:
|
||||
properties:
|
||||
actors:
|
||||
additionalProperties:
|
||||
properties:
|
||||
circuitBreaker:
|
||||
type: string
|
||||
circuitBreakerCacheSize:
|
||||
type: integer
|
||||
circuitBreakerScope:
|
||||
type: string
|
||||
retry:
|
||||
type: string
|
||||
timeout:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
apps:
|
||||
additionalProperties:
|
||||
properties:
|
||||
circuitBreaker:
|
||||
type: string
|
||||
circuitBreakerCacheSize:
|
||||
type: integer
|
||||
retry:
|
||||
type: string
|
||||
timeout:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
components:
|
||||
additionalProperties:
|
||||
properties:
|
||||
inbound:
|
||||
properties:
|
||||
circuitBreaker:
|
||||
type: string
|
||||
retry:
|
||||
type: string
|
||||
timeout:
|
||||
type: string
|
||||
type: object
|
||||
outbound:
|
||||
properties:
|
||||
circuitBreaker:
|
||||
type: string
|
||||
retry:
|
||||
type: string
|
||||
timeout:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- policies
|
||||
- targets
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
```
|
Loading…
Reference in New Issue