-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Component(s)
AlertManagerConfig
What is missing? Please describe.
I'm running the prometheus-operator v0.72.0, but the latest has the same issue. I have manually set the version of alertmanager to v0.28.0-rc.0 in the "Alertmanager" object. I did this because alertmanager has added support for a new receiver: prometheus/alertmanager#4024 which is highly anticipated. But when I try to use it by adding it to my config (following the steps outlaid in prometheus/alertmanager#3920 (comment) ), it doesn't actually get synced into the alertmanager Pod.
It gets blocked by the prometheus operator which doesn't recognize the field:
level=error ts=2024-10-29T09:50:34.557049663Z caller=klog.go:126 component=k8s_client_runtime func=ErrorDepth msg="sync "prometheus-s ││ tack/prometheus-stack-prometheu-alertmanager" failed: provision alertmanager configuration: failed to initialize from secret: yaml: u ││ nmarshal errors:\n line 27: field msteamsv2_configs not found in type config.plain"
The problem is that prometheus-operator tries to marshal it, and it doesn't exist in the object here:
type receiver struct { |
But it does here:
https://github.com/prometheus/alertmanager/blob/ff8c09d60174f27850830ceed6be38b3cf86974b/config/config.go#L988
Thanks in advance
Describe alternatives you've considered.
No response
Environment Information.
Environment
Kubernetes Version: 1.29.8
Prometheus-Operator Version: v0.72.0
Alertmanager version: v0.28.0-rc.0