Add alerts section to Canary CRD schema

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2021-01-28 09:00:53 +02:00
parent 4f54901d08
commit 6d204b52ce
3 changed files with 93 additions and 0 deletions
+31
View File
@@ -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
+31
View File
@@ -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
+31
View File
@@ -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