mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 15:46:31 +01:00
Merge pull request #8153 from simonpasquier/fix-8152
fix: fix Pushover HTML in Alertmanager configuration
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
## 0.87.1 / 2025-12-09
|
||||
|
||||
* [BUGFIX] Fix the generated Alertmanager configuration for `html` and `monospace` fields of `pushoverConfig` receiver in AlertmanagerConfig CRD. #8153
|
||||
|
||||
## 0.87.0 / 2025-11-20
|
||||
|
||||
* [FEATURE] Add status subresource for `PrometheusRule` custom resources (requires the `StatusForConfigurationResources` feature gate). #8069 #8086 #8024 #8005
|
||||
|
||||
@@ -1283,6 +1283,8 @@ func (cb *ConfigBuilder) convertPushoverConfig(ctx context.Context, in monitorin
|
||||
URL: in.URL,
|
||||
URLTitle: in.URLTitle,
|
||||
Priority: in.Priority,
|
||||
HTML: in.HTML,
|
||||
Monospace: in.Monospace,
|
||||
}
|
||||
|
||||
if in.TTL != nil {
|
||||
|
||||
@@ -2919,6 +2919,7 @@ func TestGenerateConfig(t *testing.T) {
|
||||
},
|
||||
Retry: "5m",
|
||||
Expire: "30s",
|
||||
HTML: ptr.To(true),
|
||||
}},
|
||||
}},
|
||||
},
|
||||
|
||||
1
pkg/alertmanager/testdata/CR_with_Pushover_Receiver.golden
generated
vendored
1
pkg/alertmanager/testdata/CR_with_Pushover_Receiver.golden
generated
vendored
@@ -13,4 +13,5 @@ receivers:
|
||||
token: tokenSecret
|
||||
retry: 5m
|
||||
expire: 30s
|
||||
html: true
|
||||
templates: []
|
||||
|
||||
Reference in New Issue
Block a user