Files
flagger/artifacts/steerer/crd.yaml
T
Stefan Prodan 7993ae100b Refactor canary analysis
- move CRD metrics and weight setting to canary analysis
- add max weight to CRD spec
2018-09-29 11:08:40 +03:00

68 lines
1.6 KiB
YAML

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: rollouts.apps.weave.works
spec:
group: apps.weave.works
version: v1beta1
versions:
- name: v1beta1
served: true
storage: true
names:
plural: rollouts
singular: rollout
kind: Rollout
shortNames:
- roll
scope: Namespaced
validation:
openAPIV3Schema:
properties:
spec:
required:
- targetKind
- virtualService
- primary
- canary
- canaryAnalysis
properties:
targetKind:
type: string
virtualService:
properties:
name:
type: string
primary:
properties:
name:
type: string
host:
type: string
canary:
properties:
name:
type: string
host:
type: string
canaryAnalysis:
properties:
maxWeight:
type: number
stepWeight:
type: number
metrics:
type: array
properties:
items:
type: object
properties:
name:
type: string
interval:
type: string
pattern: "^[0-9]+(m)"
threshold:
type: number