Skip to content

Commit

Permalink
Adding Grafana v10 ContactPoint types (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejshapal authored May 26, 2024
1 parent bfca452 commit c64fc82
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1beta1/grafanacontactpoint_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type GrafanaContactPointSpec struct {

Settings *apiextensions.JSON `json:"settings"`

// +kubebuilder:validation:Enum=alertmanager;dingding;discord;email;googlechat;kafka;line;opsgenie;pagerduty;pushover;sensugo;slack;teams;telegram;threema;victorops;webhook;wecom
// +kubebuilder:validation:Enum=alertmanager;prometheus-alertmanager;dingding;discord;email;googlechat;kafka;line;opsgenie;pagerduty;pushover;sensugo;sensu;slack;teams;telegram;threema;victorops;webhook;wecom;hipchat;oncall
Type string `json:"type,omitempty"`

// +optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ spec:
type:
enum:
- alertmanager
- prometheus-alertmanager
- dingding
- discord
- email
Expand All @@ -79,13 +80,16 @@ spec:
- pagerduty
- pushover
- sensugo
- sensu
- slack
- teams
- telegram
- threema
- victorops
- webhook
- wecom
- hipchat
- oncall
type: string
required:
- instanceSelector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ spec:
type:
enum:
- alertmanager
- prometheus-alertmanager
- dingding
- discord
- email
Expand All @@ -115,13 +116,16 @@ spec:
- pagerduty
- pushover
- sensugo
- sensu
- slack
- teams
- telegram
- threema
- victorops
- webhook
- wecom
- hipchat
- oncall
type: string
required:
- instanceSelector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ spec:
type:
enum:
- alertmanager
- prometheus-alertmanager
- dingding
- discord
- email
Expand All @@ -81,13 +82,16 @@ spec:
- pagerduty
- pushover
- sensugo
- sensu
- slack
- teams
- telegram
- threema
- victorops
- webhook
- wecom
- hipchat
- oncall
type: string
required:
- instanceSelector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ spec:
type:
enum:
- alertmanager
- prometheus-alertmanager
- dingding
- discord
- email
Expand All @@ -81,13 +82,16 @@ spec:
- pagerduty
- pushover
- sensugo
- sensu
- slack
- teams
- telegram
- threema
- victorops
- webhook
- wecom
- hipchat
- oncall
type: string
required:
- instanceSelector
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ GrafanaContactPointSpec defines the desired state of GrafanaContactPoint
<td>
<br/>
<br/>
<i>Enum</i>: alertmanager, dingding, discord, email, googlechat, kafka, line, opsgenie, pagerduty, pushover, sensugo, slack, teams, telegram, threema, victorops, webhook, wecom<br/>
<i>Enum</i>: alertmanager, prometheus-alertmanager, dingding, discord, email, googlechat, kafka, line, opsgenie, pagerduty, pushover, sensugo, sensu, slack, teams, telegram, threema, victorops, webhook, wecom, hipchat, oncall<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down

0 comments on commit c64fc82

Please sign in to comment.