From 4a9e3182c62fa7ca6c9a2de2cc154a6690a9ea0a Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Thu, 20 Jun 2019 14:50:21 +0300 Subject: [PATCH] Add the mesh provider field to canary CRD --- artifacts/flagger/crd.yaml | 2 ++ charts/flagger/templates/crd.yaml | 2 ++ pkg/apis/flagger/v1alpha3/types.go | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/artifacts/flagger/crd.yaml b/artifacts/flagger/crd.yaml index 3dffd621..b1467d67 100644 --- a/artifacts/flagger/crd.yaml +++ b/artifacts/flagger/crd.yaml @@ -45,6 +45,8 @@ spec: - service - canaryAnalysis properties: + provider: + type: string progressDeadlineSeconds: type: number targetRef: diff --git a/charts/flagger/templates/crd.yaml b/charts/flagger/templates/crd.yaml index 44b3a115..a6eb7409 100644 --- a/charts/flagger/templates/crd.yaml +++ b/charts/flagger/templates/crd.yaml @@ -46,6 +46,8 @@ spec: - service - canaryAnalysis properties: + provider: + type: string progressDeadlineSeconds: type: number targetRef: diff --git a/pkg/apis/flagger/v1alpha3/types.go b/pkg/apis/flagger/v1alpha3/types.go index a07900aa..3d5b0364 100755 --- a/pkg/apis/flagger/v1alpha3/types.go +++ b/pkg/apis/flagger/v1alpha3/types.go @@ -45,6 +45,10 @@ type Canary struct { // CanarySpec is the spec for a Canary resource type CanarySpec struct { + // if specified overwrites the -mesh-provider flag for this particular canary + // +optional + Provider string `json:"provider,omitempty"` + // reference to target resource TargetRef hpav1.CrossVersionObjectReference `json:"targetRef"`