From 6d204b52ce4aaebbf8a980b45084a13b1458d964 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 28 Jan 2021 09:00:53 +0200 Subject: [PATCH] Add alerts section to Canary CRD schema Signed-off-by: Stefan Prodan --- artifacts/flagger/crd.yaml | 31 +++++++++++++++++++++++++++++++ charts/flagger/crds/crd.yaml | 31 +++++++++++++++++++++++++++++++ kustomize/base/flagger/crd.yaml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+) diff --git a/artifacts/flagger/crd.yaml b/artifacts/flagger/crd.yaml index cbe10356..8a59a384 100644 --- a/artifacts/flagger/crd.yaml +++ b/artifacts/flagger/crd.yaml @@ -887,6 +887,37 @@ spec: namespace: description: Namespace of this metric template type: string + alerts: + description: Alert list for this canary analysis + type: array + items: + type: object + required: + - providerRef + - name + properties: + name: + description: Name of the this alert + type: string + severity: + description: Severity level can be info, warn, error (default info) + type: string + enum: + - "" + - info + - warn + - error + providerRef: + description: Alert provider reference + type: object + required: ["name"] + properties: + name: + description: Name of the alert provider + type: string + namespace: + description: Namespace of the alert provider + type: string webhooks: description: Webhook list for this canary type: array diff --git a/charts/flagger/crds/crd.yaml b/charts/flagger/crds/crd.yaml index cbe10356..8a59a384 100644 --- a/charts/flagger/crds/crd.yaml +++ b/charts/flagger/crds/crd.yaml @@ -887,6 +887,37 @@ spec: namespace: description: Namespace of this metric template type: string + alerts: + description: Alert list for this canary analysis + type: array + items: + type: object + required: + - providerRef + - name + properties: + name: + description: Name of the this alert + type: string + severity: + description: Severity level can be info, warn, error (default info) + type: string + enum: + - "" + - info + - warn + - error + providerRef: + description: Alert provider reference + type: object + required: ["name"] + properties: + name: + description: Name of the alert provider + type: string + namespace: + description: Namespace of the alert provider + type: string webhooks: description: Webhook list for this canary type: array diff --git a/kustomize/base/flagger/crd.yaml b/kustomize/base/flagger/crd.yaml index cbe10356..8a59a384 100644 --- a/kustomize/base/flagger/crd.yaml +++ b/kustomize/base/flagger/crd.yaml @@ -887,6 +887,37 @@ spec: namespace: description: Namespace of this metric template type: string + alerts: + description: Alert list for this canary analysis + type: array + items: + type: object + required: + - providerRef + - name + properties: + name: + description: Name of the this alert + type: string + severity: + description: Severity level can be info, warn, error (default info) + type: string + enum: + - "" + - info + - warn + - error + providerRef: + description: Alert provider reference + type: object + required: ["name"] + properties: + name: + description: Name of the alert provider + type: string + namespace: + description: Namespace of the alert provider + type: string webhooks: description: Webhook list for this canary type: array