mirror of https://github.com/linkerd/linkerd2.git
108 lines
3.1 KiB
YAML
108 lines
3.1 KiB
YAML
{{- if not .Values.SingleNamespace }}
|
|
---
|
|
###
|
|
### Service Profile CRD
|
|
###
|
|
---
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: serviceprofiles.linkerd.io
|
|
annotations:
|
|
{{.Values.CreatedByAnnotation}}: {{.Values.CliVersion}}
|
|
spec:
|
|
group: linkerd.io
|
|
version: v1alpha1
|
|
scope: Namespaced
|
|
names:
|
|
plural: serviceprofiles
|
|
singular: serviceprofile
|
|
kind: ServiceProfile
|
|
shortNames:
|
|
- sp
|
|
validation:
|
|
openAPIV3Schema:
|
|
properties:
|
|
spec:
|
|
required:
|
|
- routes
|
|
properties:
|
|
retryBudget:
|
|
required:
|
|
- minRetriesPerSecond
|
|
- retryRatio
|
|
- ttl
|
|
type: object
|
|
properties:
|
|
minRetriesPerSecond:
|
|
type: integer
|
|
retryRatio:
|
|
type: number
|
|
ttl:
|
|
type: string
|
|
routes:
|
|
type: array
|
|
items:
|
|
type: object
|
|
required:
|
|
- name
|
|
- condition
|
|
properties:
|
|
name:
|
|
type: string
|
|
timeout:
|
|
type: string
|
|
condition:
|
|
type: object
|
|
minProperties: 1
|
|
properties:
|
|
method:
|
|
type: string
|
|
pathRegex:
|
|
type: string
|
|
all:
|
|
type: array
|
|
items:
|
|
type: object
|
|
any:
|
|
type: array
|
|
items:
|
|
type: object
|
|
not:
|
|
type: object
|
|
responseClasses:
|
|
type: array
|
|
items:
|
|
type: object
|
|
required:
|
|
- condition
|
|
properties:
|
|
isFailure:
|
|
type: boolean
|
|
condition:
|
|
type: object
|
|
properties:
|
|
status:
|
|
type: object
|
|
minProperties: 1
|
|
properties:
|
|
min:
|
|
type: integer
|
|
minimum: 100
|
|
maximum: 599
|
|
max:
|
|
type: integer
|
|
minimum: 100
|
|
maximum: 599
|
|
all:
|
|
type: array
|
|
items:
|
|
type: object
|
|
any:
|
|
type: array
|
|
items:
|
|
type: object
|
|
not:
|
|
type: object
|
|
{{- end }}
|