From 6d204b52ce4aaebbf8a980b45084a13b1458d964 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 28 Jan 2021 09:00:53 +0200 Subject: [PATCH 1/2] 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 From 52cec59ca3cd24a62143700371e0a2ae8539252c Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 28 Jan 2021 09:42:02 +0200 Subject: [PATCH 2/2] Add channel and username to AlertProvider CRD schema Signed-off-by: Stefan Prodan --- artifacts/flagger/crd.yaml | 6 ++++++ charts/flagger/crds/crd.yaml | 6 ++++++ kustomize/base/flagger/crd.yaml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/artifacts/flagger/crd.yaml b/artifacts/flagger/crd.yaml index 8a59a384..41c7ff87 100644 --- a/artifacts/flagger/crd.yaml +++ b/artifacts/flagger/crd.yaml @@ -1167,6 +1167,12 @@ spec: - msteams - discord - rocket + channel: + description: Alert channel for this provider + type: string + username: + description: Bot username for this provider + type: string address: description: Hook URL address of this provider type: string diff --git a/charts/flagger/crds/crd.yaml b/charts/flagger/crds/crd.yaml index 8a59a384..41c7ff87 100644 --- a/charts/flagger/crds/crd.yaml +++ b/charts/flagger/crds/crd.yaml @@ -1167,6 +1167,12 @@ spec: - msteams - discord - rocket + channel: + description: Alert channel for this provider + type: string + username: + description: Bot username for this provider + type: string address: description: Hook URL address of this provider type: string diff --git a/kustomize/base/flagger/crd.yaml b/kustomize/base/flagger/crd.yaml index 8a59a384..41c7ff87 100644 --- a/kustomize/base/flagger/crd.yaml +++ b/kustomize/base/flagger/crd.yaml @@ -1167,6 +1167,12 @@ spec: - msteams - discord - rocket + channel: + description: Alert channel for this provider + type: string + username: + description: Bot username for this provider + type: string address: description: Hook URL address of this provider type: string