Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alerts section to Canary CRD schema #794

Merged
merged 2 commits into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions artifacts/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1136,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
Expand Down
37 changes: 37 additions & 0 deletions charts/flagger/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1136,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
Expand Down
37 changes: 37 additions & 0 deletions kustomize/base/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1136,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
Expand Down