96 lines
2.9 KiB
YAML
96 lines
2.9 KiB
YAML
---
|
|
###
|
|
### TrafficSplit CRD
|
|
### Copied from github.com/servicemeshinterface/smi-sdk-go/blob/d4e76b1cd7a33ead5f38d1262dd838a31c80f4e5/crds/split.yaml
|
|
###
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: trafficsplits.split.smi-spec.io
|
|
annotations:
|
|
{{ include "partials.annotations.created-by" . }}
|
|
labels:
|
|
linkerd.io/control-plane-ns: {{.Values.namespace}}
|
|
spec:
|
|
group: split.smi-spec.io
|
|
scope: Namespaced
|
|
conversion:
|
|
strategy: None
|
|
names:
|
|
kind: TrafficSplit
|
|
listKind: TrafficSplitList
|
|
shortNames:
|
|
- ts
|
|
plural: trafficsplits
|
|
singular: trafficsplit
|
|
versions:
|
|
- name: v1alpha1
|
|
served: true
|
|
storage: true
|
|
schema:
|
|
openAPIV3Schema:
|
|
type: object
|
|
properties:
|
|
spec:
|
|
type: object
|
|
required:
|
|
- service
|
|
- backends
|
|
properties:
|
|
service:
|
|
description: The apex service of this split.
|
|
type: string
|
|
backends:
|
|
description: The backend services of this split.
|
|
type: array
|
|
items:
|
|
type: object
|
|
required: ['service', 'weight']
|
|
properties:
|
|
service:
|
|
description: Name of the Kubernetes service.
|
|
type: string
|
|
weight:
|
|
description: Traffic weight value of this backend.
|
|
x-kubernetes-int-or-string: true
|
|
additionalPrinterColumns:
|
|
- name: Service
|
|
type: string
|
|
description: The apex service of this split.
|
|
jsonPath: .spec.service
|
|
- name: v1alpha2
|
|
served: true
|
|
storage: false
|
|
additionalPrinterColumns:
|
|
- name: Service
|
|
type: string
|
|
description: The apex service of this split.
|
|
jsonPath: .spec.service
|
|
schema:
|
|
openAPIV3Schema:
|
|
type: object
|
|
properties:
|
|
spec:
|
|
type: object
|
|
required:
|
|
- service
|
|
- backends
|
|
properties:
|
|
service:
|
|
description: The apex service of this split.
|
|
type: string
|
|
backends:
|
|
description: The backend services of this split.
|
|
type: array
|
|
items:
|
|
type: object
|
|
required: ['service', 'weight']
|
|
properties:
|
|
service:
|
|
description: Name of the Kubernetes service.
|
|
type: string
|
|
weight:
|
|
description: Traffic weight value of this backend.
|
|
type: number
|
|
preserveUnknownFields: false
|