1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-06 00:47:16 +01:00
Files
kartik 69b36538b3 fix: validate nonzero duration in AlertmanagerConfig (#8126)
* add valid alertmanagerconfig

* update validation check for global alertmanagerconfig object

* add validation marker

* add e2e test for amcfg

* fix depedency issues

* add sanitization logic & monitorv1duration field

* update tests with monitorv1duration field logic

* validate and update fields

* update import dependencies

* update unnecessary groupwait conversion

* update generated files and formatting

* update error handling && refine methods

* nonemptyduration validation for groupwait

* retrigger CI

* update validation for groupwait

* remove toplevel route validation for intervals

* simplify handling of zero durations

Zero durations are converted to empty strings which makes use of the
default value defined at a higher level in the routing tree.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Fix generated file

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Fix test compilation

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2026-02-05 10:26:44 +00:00
..
2025-05-15 11:13:43 +08:00
2026-01-28 08:54:41 +05:30
2025-12-15 17:17:05 +01:00