Skip to content

Commit

Permalink
alertmanager: Add Telegram Receiver type to AlertmanagerConfig CRD
Browse files Browse the repository at this point in the history
change unused kubebuilder attributes
  • Loading branch information
angelbarrera92 committed May 9, 2022
1 parent 01bf10d commit a9d8d4d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion bundle.yaml
Expand Up @@ -3080,7 +3080,6 @@ spec:
parseMode:
description: Parse mode for telegram message
enum:
- ""
- MarkdownV2
- Markdown
- HTML
Expand Down
Expand Up @@ -3080,7 +3080,6 @@ spec:
parseMode:
description: Parse mode for telegram message
enum:
- ""
- MarkdownV2
- Markdown
- HTML
Expand Down
1 change: 0 additions & 1 deletion jsonnet/prometheus-operator/alertmanagerconfigs-crd.json
Expand Up @@ -3241,7 +3241,6 @@
"parseMode": {
"description": "Parse mode for telegram message",
"enum": [
"",
"MarkdownV2",
"Markdown",
"HTML"
Expand Down
4 changes: 1 addition & 3 deletions pkg/apis/monitoring/v1alpha1/alertmanager_config_types.go
Expand Up @@ -789,10 +789,8 @@ type TelegramConfig struct {
// Telegram bot token
// The secret needs to be in the same namespace as the AlertmanagerConfig
// object and accessible by the Prometheus Operator.
// +kubebuilder:validation:Required
BotToken *v1.SecretKeySelector `json:"botToken,omitempty"`
// The Telegram chat ID.
// +kubebuilder:validation:Required
ChatID int64 `json:"chatID,omitempty"`
// Message template
// +optional
Expand All @@ -801,7 +799,7 @@ type TelegramConfig struct {
// +optional
DisableNotifications *bool `json:"disableNotifications,omitempty"`
// Parse mode for telegram message
//+kubebuilder:validation:Enum="";MarkdownV2;Markdown;HTML
//+kubebuilder:validation:Enum=MarkdownV2;Markdown;HTML
// +optional
ParseMode string `json:"parseMode,omitempty"`
// HTTP client configuration.
Expand Down

0 comments on commit a9d8d4d

Please sign in to comment.