1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00

8448 Commits

Author SHA1 Message Date
Simon Pasquier
ad940fabf6 feat: use minReadySeconds as default first delay (#8201)
This commit removes the `dispatchStartDelay` field from the Alertmanager
CRD and uses instead the `minReadySeconds` value as the default
duration to delay the first flush of aggregation groups.

When Kubernetes performs pod updates (due to spec updates or pod
eviction),`minReadySeconds` defines how long a statefulset's pod should
be ready before kube-controller-manager can proceed with the next pod
update. The main use case of `minReadySeconds` is to ensure that
Prometheus has resent all alerts before updating the next pod hence it
makes sense for Alertmanager to wait the same amount of time before
sending alert notifications. Users who want to use another value for
`--dispatch.start-delay` can customize it using the
`.spec.additionalArgs` field.

The removal of `dispatchStartDelay` is possible because the field hasn't
been made available in any public release.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-05 12:45:43 +01:00
Simon Pasquier
9db1527060 feat: use minReadySeconds as default first delay
This commit removes the `dispatchStartDelay` field from the Alertmanager
CRD and uses instead the `minReadySeconds` value as the default
duration to delay the first flush of aggregation groups.

When Kubernetes performs pod updates (due to spec updates or pod
eviction),`minReadySeconds` defines how long a statefulset's pod should
be ready before kube-controller-manager can proceed with the next pod
update. The main use case of `minReadySeconds` is to ensure that
Prometheus has resent all alerts before updating the next pod hence it
makes sense for Alertmanager to wait the same amount of time before
sending alert notifications. Users who want to use another value for
`--dispatch.start-delay` can customize it using the
`.spec.additionalArgs` field.

The removal of `dispatchStartDelay` is possible because the field hasn't
been made available in any public release.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-05 12:05:37 +01:00
Simon Pasquier
bcf1866513 Merge pull request #8202 from simonpasquier/support-update-strategy
feat: expose update strategy for workloads
2026-01-05 11:59:01 +01:00
Simon Pasquier
e87e6188fc Merge pull request #8211 from simonpasquier/refactor-validation-url
chore: refactor URL validation
2026-01-05 11:57:58 +01:00
Ashwin Sriram
4a0f21ef8c chore: enable noBools linter (#8064) 2026-01-05 11:12:44 +01:00
Billy
215b1763bb pkg/alertmanager: add URL validation for Pushover receiver
Adds URL validation for Pushover receiver configuration fields when loaded from
secrets. This ensures URLs are validated regardless of whether configurations come from
CustomResources or secrets.
2025-12-31 21:27:31 +05:30
Billy
2bb92b4e23 pkg/alertmanager: add URL validation for Telegram receiver
Adds URL validation for Telegram receiver configuration fields when loaded from secrets. This ensures URLs are validated regardless of whether configurations come from CustomResources or secrets.
2025-12-31 21:24:54 +05:30
Billy
0ff540c76a pkg/alertmanager: add URL validation for Webhook receiver
Adds URL validation for Webhook receiver configuration fields when loaded from
secrets. This ensures URLs are validated regardless of whether configurations
come from CustomResources or secrets.
2025-12-31 18:54:30 +05:30
Billy
114dfc6992 pkg/alertmanager: Add URL validation checks for Incident.io receiver
This PR adds test coverage to verify URL validation logic for the Incidentio receiver in Alertmanager
configuration. The validation ensures that the url field, when provided, is a well-formed URL.
2025-12-31 18:12:18 +05:30
Simon Pasquier
98025f18d8 chore: refactor URL validation
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-24 15:38:33 +01:00
Tomlin7
f62c9d8d8b pkg/prometheus: move LabelConfigValidator to validation package (#8209)
This move improves code organization and encapsulation by isolating
validation logic from resource selection. It also resolves issues
related to accessing private fields/methods across files.

The 'validate' method was renamed to 'ValidateRelabelConfig' to allow
it to be tested and used from outside the package.

Updated references in:
- pkg/prometheus/resource_selector.go
- pkg/prometheus/promcfg.go
- pkg/prometheus/server/operator.go
- pkg/prometheus/resource_selector_test.go

Fixes: #8209
2025-12-24 14:18:44 +00:00
Nutmos
6a92553ec0 Feat: Add URL validation for Webhook receiver (#8125)
* update to url type

* update generated files

* update e2e test cases

* trigger ci

* update url validation method

* trigger ci

* validation: update validation method

make the url validation shorter
2025-12-24 15:12:05 +01:00
Nutmos
11651486ce Feat: Add API URL validation for OpsGenie receiver in CR (#8206)
* add url validation for opsgenie CR

* trigger ci

* add opsgenie test case

* update validation

* fix linter
2025-12-24 12:44:42 +00:00
Varun Deep Saini
a1f0fcba66 api: add listType markers to AlertmanagerConfig v1alpha1 (#8207)
* api: add listType markers to AlertmanagerConfig v1alpha1

* resolve comments

* fixes
2025-12-24 13:34:37 +01:00
Nutmos
39145f810d Feat: Add API URL validation for WeChat receiver in CR (#8196)
* reupdate file

* trigger ci
2025-12-24 11:56:28 +01:00
Kartik Angiras
6893cffe5d enable NoMaps Linter (#8098)
* fixed rebasing conflicts

* update nomapslinter for prometheusrule

* update nomapslinter for thanostypes
2025-12-24 10:46:11 +00:00
Simon Pasquier
19febac62b feat: expose update strategy for workloads
This commit introduces a new `updateStrategy` field for
statefulset-based workloads (Prometheus, PrometheusAgent, Alertmanager
and ThanosRuler). While for now, there's a 1:1 mapping with StatefulSet
strategies, it paves the way to the introduction of custom strategies
which may be required to streamline operations in case of broken updates
(similar to the scenario explained in
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#forced-rollback).

Closes #5435

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-23 14:31:34 +01:00
github-actions[bot]
ec1b4e5672 Merge pull request #8171 from prometheus-operator/dependabot/go_modules/google.golang.org/protobuf-1.36.11
build(deps): bump google.golang.org/protobuf from 1.36.10 to 1.36.11
2025-12-22 14:11:28 +00:00
dependabot[bot]
3295f18165 build(deps): bump google.golang.org/protobuf from 1.36.10 to 1.36.11
Bumps google.golang.org/protobuf from 1.36.10 to 1.36.11.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-version: 1.36.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-22 13:27:02 +00:00
github-actions[bot]
8dc6257841 Merge pull request #8156 from prometheus-operator/dependabot/go_modules/k8s-libs-93a6033a87
build(deps): bump the k8s-libs group with 5 updates
2025-12-22 18:55:49 +05:30
dongjiang
d504fac8b7 chore: Refactor tracingConfig for alertmanager (#8192)
---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2025-12-22 13:43:09 +01:00
Nutmos
b4b6cd8d21 Feat: Add API URL validation for Telegram receiver in CR (#8199)
* change api url to url type and add validation

* update test case
2025-12-22 13:34:36 +01:00
Jayapriya Pai
1df3eff9ba Merge pull request #8197 from simonpasquier/disable-external-url-validation 2025-12-22 08:39:57 +05:30
Simon Pasquier
48c3da685e chore: disable link validation in mdox
Link validation is too flaky because most sites now implement
rate-limiting.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-19 14:41:31 +01:00
Hélia Barroso
99deb063cc feat: add incident.io support to am config secret (#8190)
* feat: add incident.io support to am config

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

* feat: add validateurl

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-12-19 13:13:48 +01:00
Simon Pasquier
4fc65465fa chore: unify HTTP configuration for ServiceMonitor CRD (#8139)
* chore: unify HTTP configuration for ServiceMonitor CRD

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

* test: fix Alertmanager unit tests

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

* test: fix Prometheus unit tests

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

* test: fix e2e tests

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

* test: fix pkg/apis/monitoring tests

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

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-19 13:11:51 +01:00
Nutmos
00165220bf Feat: add maximum version to EC2 and Lightsail SD (#8175) 2025-12-18 15:47:19 +01:00
Nutmos
3265109af3 Feat: Add Config Generator for Alertmanager's Mattermost Receiver (#8188) 2025-12-18 15:45:01 +01:00
Hélia Barroso
83507b9c57 Merge pull request #8187 from heliapb/fix_docs
fix: kubernetes version compatibility
2025-12-18 10:41:27 +01:00
Nutmos
65da264330 Merge pull request #8177 from nutmos/feat/add-support-dispatch.start-delay-flag
Feat: Add the new dispatch.start-delay flag for Alertmanager
2025-12-17 14:13:56 +00:00
Hélia Barroso
f3b2dae17e Merge pull request #8161 from heliapb/feat/add_timeout_slack
feat: add timeout to alertmanager slack config
2025-12-17 14:02:34 +00:00
Hélia Barroso
49e6ac4771 Merge pull request #8180 from heliapb/feat_rm_json_tags
chore: rm json tags from alertmanager types
2025-12-17 13:57:02 +01:00
Simon Pasquier
6ab41f813b Merge pull request #8162 from heliapb/feat/add_timeout_page
feat: add timeout to alertmanager pagerduty config
2025-12-17 12:13:30 +01:00
Simon Pasquier
907c57108d Merge pull request #8186 from kubeservice-stack/up-prom-version
chore: Update prometheus version to v3.8.1
2025-12-17 11:58:17 +01:00
dongjiang1989
8b72a7125d update prometheus version
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2025-12-17 17:42:36 +08:00
Hélia Barroso
4c31ea2f71 fix: rebase, ci
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-12-16 18:24:02 +00:00
Hélia Barroso
e724e9d353 feat: add timeout to alertmanager pagerduty config
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-12-16 18:16:11 +00:00
github-actions[bot]
6cafee80ce Merge pull request #8184 from prometheus-operator/dependabot/go_modules/github.com/prometheus/alertmanager-0.30.0
build(deps): bump github.com/prometheus/alertmanager from 0.29.0 to 0.30.0
2025-12-16 12:46:23 +00:00
github-actions[bot]
7f7a06082f Merge pull request #8183 from prometheus-operator/dependabot/go_modules/github.com/prometheus/prometheus-0.308.1
build(deps): bump github.com/prometheus/prometheus from 0.308.0 to 0.308.1
2025-12-16 12:42:49 +00:00
dependabot[bot]
d8686ca4bc build(deps): bump github.com/prometheus/alertmanager
Bumps [github.com/prometheus/alertmanager](https://github.com/prometheus/alertmanager) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/prometheus/alertmanager/releases)
- [Changelog](https://github.com/prometheus/alertmanager/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/alertmanager/compare/v0.29.0...v0.30.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/alertmanager
  dependency-version: 0.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-16 12:02:56 +00:00
dependabot[bot]
5ec68fa807 build(deps): bump github.com/prometheus/prometheus
Bumps [github.com/prometheus/prometheus](https://github.com/prometheus/prometheus) from 0.308.0 to 0.308.1.
- [Release notes](https://github.com/prometheus/prometheus/releases)
- [Changelog](https://github.com/prometheus/prometheus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/prometheus/compare/v0.308.0...v0.308.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/prometheus
  dependency-version: 0.308.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-16 12:02:48 +00:00
Jayapriya Pai
5f899e5db8 Merge pull request #8179 from heliapb/feat_bump_am
chore: update alertmanager version to 0.30
2025-12-16 15:09:43 +05:30
Simon Pasquier
7fce2ef6d1 Merge pull request #8182 from kubeservice-stack/update-kindest-node
chore: Update kindest node to v1.34.2
2025-12-16 09:29:24 +01:00
dongjiang1989
677954d965 update kindest node
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2025-12-16 13:49:33 +08:00
Hélia Barroso
1068825df5 chore: update alertmanager version to 0.30
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-12-15 23:52:50 +00:00
Simon Pasquier
9825c373ef Update other parts
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-15 17:17:05 +01:00
dependabot[bot]
fe22d2566e build(deps): bump the k8s-libs group with 5 updates
Bumps the k8s-libs group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.34.2` | `0.34.3` |
| [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver) | `0.34.2` | `0.34.3` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.34.2` | `0.34.3` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.34.2` | `0.34.3` |
| [k8s.io/component-base](https://github.com/kubernetes/component-base) | `0.34.2` | `0.34.3` |


Updates `k8s.io/api` from 0.34.2 to 0.34.3
- [Commits](https://github.com/kubernetes/api/compare/v0.34.2...v0.34.3)

Updates `k8s.io/apiextensions-apiserver` from 0.34.2 to 0.34.3
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases)
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.34.2...v0.34.3)

Updates `k8s.io/apimachinery` from 0.34.2 to 0.34.3
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.34.2...v0.34.3)

Updates `k8s.io/client-go` from 0.34.2 to 0.34.3
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.34.2...v0.34.3)

Updates `k8s.io/component-base` from 0.34.2 to 0.34.3
- [Commits](https://github.com/kubernetes/component-base/compare/v0.34.2...v0.34.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.34.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-libs
- dependency-name: k8s.io/apiextensions-apiserver
  dependency-version: 0.34.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-libs
- dependency-name: k8s.io/apimachinery
  dependency-version: 0.34.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-libs
- dependency-name: k8s.io/client-go
  dependency-version: 0.34.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-libs
- dependency-name: k8s.io/component-base
  dependency-version: 0.34.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s-libs
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-15 17:15:50 +01:00
Simon Pasquier
d3a51cc711 Merge pull request #8178 from prometheus-operator/dependabot/github_actions/actions/upload-artifact-6
build(deps): bump actions/upload-artifact from 5 to 6
2025-12-15 17:15:05 +01:00
Simon Pasquier
52b51a2403 Merge pull request #8173 from omgupta-iitk/feat/kal-linter_forbiddenMarkers
feat: Added forbidden markers checks
2025-12-15 16:58:21 +01:00
dependabot[bot]
f34381a1a5 build(deps): bump actions/upload-artifact from 5 to 6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 12:02:42 +00:00