pkg/datasource/k8s/config/crd/bases/datasource.sentinel.io_circuitbreakerrules.yaml (94 lines of code) (raw):
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.5
creationTimestamp: null
name: circuitbreakerrules.datasource.sentinel.io
spec:
group: datasource.sentinel.io
names:
kind: CircuitBreakerRules
listKind: CircuitBreakerRulesList
plural: circuitbreakerrules
singular: circuitbreakerrules
scope: Namespaced
validation:
openAPIV3Schema:
description: CircuitBreakerRules is the Schema for the circuitbreakerrules API
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
spec:
description: CircuitBreakerRulesSpec defines the desired state of CircuitBreakerRules
properties:
rules:
items:
properties:
id:
maxLength: 32
minLength: 0
type: string
maxAllowedRtMs:
format: int64
minimum: 0
type: integer
minRequestAmount:
format: int64
minimum: 1
type: integer
resource:
maxLength: 64
minLength: 1
type: string
retryTimeoutMs:
format: int32
minimum: 1
type: integer
statIntervalMs:
format: int32
minimum: 1
type: integer
strategy:
enum:
- SlowRequestRatio
- ErrorRatio
- ErrorCount
type: string
threshold:
format: int64
minimum: 0
type: integer
required:
- resource
- strategy
- threshold
type: object
type: array
type: object
status:
description: CircuitBreakerRulesStatus defines the observed state of CircuitBreakerRules
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []