mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
- move CRD metrics and weight setting to canary analysis - add max weight to CRD spec
68 lines
1.6 KiB
YAML
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
|
|
|