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
SANCHIT KUMAR
8eb57b7ca3 fix: support IPv6 addresses in prober URL validation (#8354)
* fix: support IPv6 addresses in prober URL validation

Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>

* docs: add comment explaining govalidator usage over stdlib

Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>

---------

Signed-off-by: Sanchit2662 <sanchit2662@gmail.com>
2026-02-04 18:03:48 +01:00
David laid
4d23e88884 Merge pull request #8310 from WHOIM1205/fix-informer-nil-pointer-panic
Fix nil pointer panic in StatefulSet status reporting during informer cache races
2026-02-04 13:35:34 +00:00
Simon Pasquier
a4cd83d34d Merge pull request #8343 from simonpasquier/fix-8312
Restore statefulset's labels if create fails with AlreadyExists
2026-02-04 11:54:47 +01:00
Nutmos
825cca875e Feat: add test cases for Alertmanager secret config Jira receiver (#8349)
* amcfg: add jira sanitize test cases for alertmanager secret config

* amcfg: add golden file

for the missing comparison
2026-02-04 11:41:21 +01:00
Simon Pasquier
63ffb7cc92 fix: include operator.prometheus.io/version in full CRDs (#8279)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-02-04 11:35:23 +01:00
Arpit Srivastava
a57c10d6b7 Merge pull request #8350 from Arpit529Srivastava/kubelet-cmd-flag
feat: add flag to disable insecure kubelet metrics port
2026-02-04 11:16:48 +01:00
Simon Pasquier
c8e299f669 feat: add httpheaders in am secret (#8357)
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-02-04 11:10:02 +01:00
Simon Pasquier
4e54eab340 fix: include operator.prometheus.io/version in full CRDs
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-02-04 10:55:04 +01:00
Simon Pasquier
7c68023473 chore: rephrase creation error messages
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-02-04 10:32:40 +01:00
Jayapriya Pai
59d8727842 Merge pull request #8352 from heliapb/fix/bump_am031
chore: bump am to 0.31.0
2026-02-04 14:50:23 +05:30
Simon Pasquier
dd0a792438 Add end-to-end tests for Alertmanager and ThanosRuler
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-02-04 10:18:57 +01:00
Simon Pasquier
94e8bdedad Use new CreateStatefulSetOrPatchLabels() function in controllers
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-02-04 10:18:55 +01:00
Simon Pasquier
5e26cd163d Add CreateStatefulSetOrPatchLabels() to k8sutil package
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-02-04 10:17:05 +01:00
Simon Pasquier
f61936b22d test: add test for #8312
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2026-02-04 10:17:05 +01:00
Hélia Barroso
e62c932bae feat: add httpheaders in am secret
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-02-03 22:32:26 +00:00
github-actions[bot]
4cadbf7736 Merge pull request #8351 from prometheus-operator/dependabot/go_modules/github.com/prometheus/alertmanager-0.31.0
build(deps): bump github.com/prometheus/alertmanager from 0.30.1 to 0.31.0
2026-02-02 14:46:46 +00:00
Hélia Barroso
9572c47cc8 feat: bump am to latest
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-02-02 14:38:16 +00:00
Arpit Srivastava
47c8b93465 feat: add promtool validation for golden files (#8216)
* feat: add promtool validation for golden files

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

* fix: add goldenfiles and testdata to cspell dictionary

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

* fix: clarify note on excluded files in golden file validation

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

* refactor: use tools.go pattern for promtool

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

---------

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
2026-02-02 15:31:10 +01:00
dependabot[bot]
9d397d0169 build(deps): bump github.com/prometheus/alertmanager
Bumps [github.com/prometheus/alertmanager](https://github.com/prometheus/alertmanager) from 0.30.1 to 0.31.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.30.1...v0.31.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 14:03:18 +00:00
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