1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 15:46:31 +01:00
Commit Graph

8429 Commits

Author SHA1 Message Date
Rajat Vig
c111fdfd3c Merge pull request #8348 from rajatvig/feat/bodysizelimit-sc
scrapeconfig: add bodySizeLimit field
2026-02-02 14:29:18 +01:00
Simon Pasquier
b23508bec2 Merge pull request #8347 from Yashika0724/fix/thanosruler-statefulset-empty-hash
fix: compute input hash before creating ThanosRuler StatefulSet
2026-02-02 14:20:07 +01:00
Yashika0724
4eb498d287 fix: compute input hash before creating ThanosRuler StatefulSet
Signed-off-by: Yashika0724 <ssyashika1311@gmail.com>
2026-01-31 02:28:33 +05:30
Simon Pasquier
b8793b1355 Merge pull request #8342 from simonpasquier/convert-status-v1beta1
fix: convert status field between v1alpha1 <-> v1beta1
2026-01-30 16:09:25 +01:00
Jayapriya Pai
e378fd0eb6 Merge pull request #8345 from slashpai/gsoc 2026-01-30 18:41:53 +05:30
Jayapriya Pai
6d0e8f8716 docs: update AI usage policy
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-30 15:53:09 +05:30
Simon Pasquier
e7c3772723 fix: convert status field between v1alpha1 <-> v1beta1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-29 16:10:23 +01:00
Simon Pasquier
82205612de Merge pull request #8256 from kartikangiras/kartik/wechat
add URL validation for WeChat receiver
2026-01-29 15:52:43 +01:00
Simon Pasquier
b2e75162ad chore: refactor sync() methods in controllers (#8335)
This commit aligns all controllers to follow the same pattern when
dealing with non-existing and paused objects. It also ensures consistent
logging.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-29 15:47:52 +01:00
Hélia Barroso
446c84244d fix: sns templating issue (#8320)
* fix: sns templating issue
2026-01-29 15:55:23 +05:30
github-actions[bot]
8337cf404a Merge pull request #8338 from prometheus-operator/dependabot/github_actions/streetsidesoftware/cspell-action-8.2.0
build(deps): bump streetsidesoftware/cspell-action from 8.1.2 to 8.2.0
2026-01-28 13:22:47 +00:00
dependabot[bot]
44e6f716ee build(deps): bump streetsidesoftware/cspell-action from 8.1.2 to 8.2.0
Bumps [streetsidesoftware/cspell-action](https://github.com/streetsidesoftware/cspell-action) from 8.1.2 to 8.2.0.
- [Release notes](https://github.com/streetsidesoftware/cspell-action/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell-action/blob/main/CHANGELOG.md)
- [Commits](24fa8d3096...d5d910b521)

---
updated-dependencies:
- dependency-name: streetsidesoftware/cspell-action
  dependency-version: 8.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-28 12:42:30 +00:00
Arpit Srivastava
ada1bdfd09 Merge pull request #8311 from Arpit529Srivastava/k8s-test-data
feat: organize testdata for version-specific promtool validation
2026-01-28 11:21:46 +01:00
Simon Pasquier
6341245289 Merge v0.88.1 back to main (#8332)
* alertmanager: add webhookURL secret validation to checkMSTeamsConfigs (#8294)

Validate that the webhookURL secret exists in checkMSTeamsConfigs,
consistent with checkMSTeamsV2Configs. This prevents operator
degradation when an AlertmanagerConfig references a missing secret.

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>

* fix: undo maximum version to EC2 and Lightsail SD

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

* fix: implement template URL validations

This commit relaxes URL validation for Webhook and Pushover
configurations because they support Go template syntax.

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

* fix: am slack templating issue

* fix: relax validation on Pushover URL

The Pushover URL can be a template string.

Related to #8315

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

* fix: relax validation on RocketChat template URLs

Relates to #8315

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

* fix: allow templated URLs in PagerDuty config fields

Change ClientURL and Href fields in PagerDutyConfig, PagerDutyImageConfig,
and PagerDutyLinkConfig from *URL to *string to support Go templates.

Related-to #8315

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>

* fix: relax URL validation on WebhookConfig

Relates to #8315

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

* fix: correctly assign IconURL, ImageURL, ThumbURL in Slack config

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>

* chore: cut v0.88.1

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>

* make generate

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>

---------

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Hélia Barroso <helia_barroso@hotmail.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2026-01-28 10:00:58 +01:00
Jayapriya Pai
53f570e28d make generate
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-28 09:07:01 +05:30
Jayapriya Pai
2ddd67fbf7 chore: cut v0.88.1
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-28 08:54:41 +05:30
Jayapriya Pai
f2a06d23b8 fix: correctly assign IconURL, ImageURL, ThumbURL in Slack config
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-28 08:54:00 +05:30
Simon Pasquier
3bdb9c0537 fix: relax URL validation on WebhookConfig
Relates to #8315

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-28 08:54:00 +05:30
Jayapriya Pai
7376128340 fix: allow templated URLs in PagerDuty config fields
Change ClientURL and Href fields in PagerDutyConfig, PagerDutyImageConfig,
and PagerDutyLinkConfig from *URL to *string to support Go templates.

Related-to #8315

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-28 08:53:59 +05:30
Simon Pasquier
d4b0f495dc fix: relax validation on RocketChat template URLs
Relates to #8315

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-28 08:53:59 +05:30
Simon Pasquier
181b8dd396 fix: relax validation on Pushover URL
The Pushover URL can be a template string.

Related to #8315

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-28 08:53:59 +05:30
Hélia Barroso
a547a6d4c1 fix: am slack templating issue 2026-01-28 08:53:54 +05:30
Simon Pasquier
eb75f58b04 fix: implement template URL validations
This commit relaxes URL validation for Webhook and Pushover
configurations because they support Go template syntax.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-28 08:37:35 +05:30
Hélia Barroso
66323b76bf fix: undo maximum version to EC2 and Lightsail SD
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-01-28 08:37:35 +05:30
Jayapriya Pai
6ec97a60bd alertmanager: add webhookURL secret validation to checkMSTeamsConfigs (#8294)
Validate that the webhookURL secret exists in checkMSTeamsConfigs,
consistent with checkMSTeamsV2Configs. This prevents operator
degradation when an AlertmanagerConfig references a missing secret.

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-28 08:37:31 +05:30
Simon Pasquier
dfda10d711 fix: add missing ScrapeConfigNamespaceSelector in handleMonitorNamespaceUpdate (#8334)
Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>
2026-01-27 17:54:15 +01:00
Simon Pasquier
e9c8048f71 chore: refactor sync() methods in controllers
This commit aligns all controllers to follow the same pattern when
dealing with non-existing and paused objects. It also ensures consistent
logging.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-01-27 17:22:31 +01:00
Sanchit2662
d45b0e5c6b fix: add missing ScrapeConfigNamespaceSelector in handleMonitorNamespaceUpdate
Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>
2026-01-27 21:41:05 +05:30
Yashika
4dd82cbc15 Fix race condition in finalizer removal using JSON Patch test operation (#8323)
* fix: add test operation to finalizer delete patch to prevent race condition

Signed-off-by: Yashika0724 <ssyashika1311@gmail.com>

* docs: update FinalizerDeletePatch comment to reflect test operation

Signed-off-by: Yashika0724 <ssyashika1311@gmail.com>

---------

Signed-off-by: Yashika0724 <ssyashika1311@gmail.com>
2026-01-27 10:33:03 +01:00
Arpit Srivastava
2ef7824d79 fix: prevent empty azuread config generation (#8327)
* fix: prevent empty azuread config generation

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>

* add regression test

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>

* add regression test case to TestRemoteWriteConfig

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>

* fix: enforce Azure AD auth method compatibility and update tests

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>

* refactor: move version checks to individual auth method blocks

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>

---------

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
2026-01-27 09:36:12 +01:00
Simon Pasquier
4cb6af0374 Merge pull request #8330 from Yashika0724/fix/onupdate-nil-pointer-dereference
Fix nil pointer panic in OnUpdate event handler
2026-01-27 09:24:58 +01:00
Yashika0724
ebe89b8d03 fix: add missing return after meta.Accessor errors in OnUpdate
Signed-off-by: Yashika0724 <ssyashika1311@gmail.com>
2026-01-27 10:30:29 +05:30
Simon Pasquier
cda2c6f314 Merge pull request #8322 from Sanchit2662/fix/alertmanager-forget-object-on-deletion
fix: add missing ForgetObject call in Alertmanager controller
2026-01-26 17:05:12 +01:00
Kartik Angiras
40f3ded320 add url validation for wechat receiver 2026-01-25 20:39:34 +05:30
Sanchit2662
93cb4d2b8d fix: add missing ForgetObject call in Alertmanager controller
Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>
2026-01-25 15:04:21 +05:30
Simon Pasquier
b76c97db18 fix: propagate StatefulSet deletion errors during shard cleanup (#8296)
Signed-off-by: WHOIM1205 <rathourprateek8@gmail.com>
2026-01-21 14:54:00 +01:00
Arpit Srivastava
61506486d8 Merge pull request #8300 from Arpit529Srivastava/promtool-test-data
fix: update test data for promtool validation compatibility
2026-01-21 13:29:11 +01:00
Simon Pasquier
f15a484347 Merge pull request #8304 from Yashika0724/fix/reset-reconciliation-status
### Fix: Clear Stale Reconciliation Status in Alertmanager, Thanos, and PrometheusAgent Controllers
2026-01-21 13:27:32 +01:00
Yashika
1e05632524 fix: add missing ResetStatus call in Sync for Alertmanager, Thanos, and PrometheusAgent
Signed-off-by: Yashika0724 <ssyashika1311@gmail.com>
2026-01-21 16:28:56 +05:30
Simon Pasquier
975fafc984 fix: nil pointer dereference in shouldRetain when ShardRetentionPolicy is nil (#8302)
Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>
2026-01-21 09:59:12 +01:00
Sanchit2662
76b4772834 fix: nil pointer dereference in shouldRetain when ShardRetentionPolicy is nil
Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>
2026-01-21 11:52:40 +05:30
Arpit Srivastava
a3734ffd82 Merge pull request #8295 from Arpit529Srivastava/promtool-labels
fix: missing target label and removed invalid test file for promtool
2026-01-19 16:28:18 +01:00
WHOIM1205
037a30f173 fix: propagate StatefulSet deletion errors during shard cleanup
Signed-off-by: WHOIM1205 <rathourprateek8@gmail.com>
2026-01-19 03:01:37 -08:00
Simon Pasquier
4fa9d25df6 Merge pull request #8290 from Sanchit2662/fix/prometheusrule-configmap-sync
fix: use update-in-place for PrometheusRule ConfigMaps
2026-01-19 10:51:45 +01:00
Hélia Barroso
e17fd68b55 fix: typo in am discord receiver (#8293)
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-01-19 10:15:20 +01:00
Nutmos
59de775069 Feat: Add GlobalConfig RocketChat Validation (#8283)
* *: add validation for rocketchat

for more validation

* amcfg: move rocket chat version validation

to validate in the check function instead

* amcfg: update error method

to user errorf for error format

* amcfg: update method name

change to private

* amcfg: update method

change to private method
2026-01-19 10:14:07 +01:00
Arpit Srivastava
5afdc81a3a fix: SD config URLs and formats (#8289)
* fix: add server urls to kuma and k8s configs

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>

* fix: add server URLs and fix formats in SD test configs

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>

---------

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
2026-01-19 10:13:32 +01:00
Sanchit2662
5ccca6a9c3 fix: use update-in-place for PrometheusRule ConfigMaps
Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>
2026-01-17 21:58:10 +05:30
kartik angiras
87ed2f1149 add URL validation for OpsGenie receiver (#8257)
* add url validation for opsgenie receiver

* retrigger ci
2026-01-16 17:13:02 +01:00
Nutmos
8578941173 Chore: Refactor Validation in API (#8274)
* api: move validation methods to validation file

* api: fix validation

to fix conflict after merging with main
2026-01-16 17:12:16 +01:00