Refactor canary analysis

- move CRD metrics and weight setting to canary analysis
- add max weight to CRD spec
This commit is contained in:
Stefan Prodan
2018-09-29 11:08:40 +03:00
parent 6143ebce48
commit 7993ae100b
18 changed files with 175 additions and 96 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
apiVersion: v1
name: steerer
version: 0.0.1
appVersion: 0.0.1-beta.12
appVersion: 0.0.1-rc.1
description: Steerer is a Kubernetes operator that automates the promotion of canary deployments using Istio routing for traffic shifting and Prometheus metrics for canary analysis.
+25 -17
View File
@@ -22,10 +22,18 @@ spec:
properties:
spec:
required:
- targetKind
- virtualService
- primary
- canary
- virtualService
- canaryAnalysis
properties:
targetKind:
type: string
virtualService:
properties:
name:
type: string
primary:
properties:
name:
@@ -38,23 +46,23 @@ spec:
type: string
host:
type: string
virtualService:
canaryAnalysis:
properties:
name:
type: string
weight:
maxWeight:
type: number
metrics:
type: array
properties:
items:
type: object
stepWeight:
type: number
metrics:
type: array
properties:
name:
type: string
interval:
type: string
pattern: "^[0-9]+(m)"
threshold:
type: number
items:
type: object
properties:
name:
type: string
interval:
type: string
pattern: "^[0-9]+(m)"
threshold:
type: number
{{- end }}
+1 -1
View File
@@ -2,7 +2,7 @@
image:
repository: stefanprodan/steerer
tag: 0.0.1-beta.12
tag: 0.0.1-rc.1
pullPolicy: IfNotPresent
controlLoopInterval: "10s"