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

1778 Commits

Author SHA1 Message Date
Thomas Boerger
5e8d9c5128 feat: integrate all supported rocketchat attributes for alertmanagerconfig CR (#8016)
* feat: integrate all supported rocketchat attributes for alertmanagerconfig CR

* fix: drop rocketchat file references as requested

* fix: correctly format the generated code

* feat: move rocketchat validations into validation package

* chore: revert token/tokenID optional requirement

* feat: use ValidateTemplateURL for Rocket.Chat links

* Simplify code

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:51:30 +00:00
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
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
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
Rajat Vig
c111fdfd3c Merge pull request #8348 from rajatvig/feat/bodysizelimit-sc
scrapeconfig: add bodySizeLimit field
2026-02-02 14:29:18 +01:00
Hélia Barroso
446c84244d fix: sns templating issue (#8320)
* fix: sns templating issue
2026-01-29 15:55:23 +05:30
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
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
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
Simon Pasquier
3c74a00573 alertmanager: add hostNetwork support (#8281)
Allows Alertmanager Pods to use the host's network namespace by adding the hostNetwork field to the AlertmanagerSpec.

Co-authored-by: Listell McLean <listell.mclean@e-star.com>
2026-01-15 14:56:05 +01:00
dongjiang
63cbee46c6 fix hugo server bug (#8282)
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2026-01-15 14:14:56 +01:00
Listell McLean
f064750055 alertmanager: add hostNetwork support
Allows Alertmanager Pods to use the host's network namespace by adding the hostNetwork field to the AlertmanagerSpec.
2026-01-14 18:08:52 +00:00
arpit529srivastava
30f891684e docs: add tier-1/tier-2 SD support levels to ScrapeConfig
Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
2026-01-14 02:50:39 +05:30
Arpit Srivastava
ba40a488f5 docs: clarify scrapeConfigNamespaceSelector (#8208)
* docs: clarify scrapeConfigNamespaceSelector

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

* docs: fix menu indentation

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

* docs: clarify resource and namespace selectors in Prometheus Operator CRDs

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

---------

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
2026-01-13 21:18:22 +01:00
Nutmos
e7e119fbba Feat: Add validations to SNS Receiver in Alertmanager Config CR (#8217)
* api: update variable type

to match the type of optional and add more validation

* am-validation: add url validation and test case

to semantically verify URL

* alertmanager: move test case to operator

to validate at the correct part

* validation: update validation method and error message

for a clear validation and clean code

* validation: update validationSnsConfig method

to let the compiler guess variable type

* validation: update import order

to fix golang lint check

* trigger ci
2026-01-13 21:06:54 +01:00
Arpit Srivastava
b877445c6d Add crd print subcommand to output embedded CRDs (#8251)
* feat: embed CRD manifests in operator

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

* replace sort with slices package

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

* refactor: use flag.NArg() for crds and start commands

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

* refactor: move crds to cmd/crds and add --help info

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

* feat: add full-crds command

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

---------

Signed-off-by: arpit529srivastava <arpitsrivastava529@gmail.com>
2026-01-13 20:49:03 +01:00
Jayapriya Pai
be9163b856 Merge pull request #8276 from heliapb/feat/bump_am
chore: Update alertmanager to v0.30.1
2026-01-13 16:40:05 +05:30
Hélia Barroso
f40fdd7d8b chore: bump am to 0.30.1
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-01-13 10:28:24 +00:00
arpit529srivastava
9cb41945f6 docs: fix heading levels in scrapeconfig.md 2026-01-12 21:19:57 +05:30
Jayapriya Pai
7d1d99052d chore: cut v0.88.0
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2026-01-09 15:03:07 +05:30
Hélia Barroso
e0d02b23ec chore: bump prometheus 3.9.1
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-01-07 20:57:54 +00:00
Nutmos
37ac74f402 Merge pull request #8235 from nutmos/feat/add-slack-validations
Feat: Add Validations to Slack Receiver in Alertmanager Config CR
2026-01-07 14:19:49 +01:00
Hélia Barroso
2abf82c647 feat: Add scope support for AzureAD Remote Write (#8240)
* feat: add scope support for azuread rw

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

* fix: rebase

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

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-01-07 12:43:06 +00:00
Jayapriya Pai
f6ca08b52c Merge pull request #8248 from fluktuid/docs/fix-alertmanager_type
docs(alertmanager_types.go): fix misleading doc for WebexConfig
2026-01-07 17:47:21 +05:30
Jayapriya Pai
6f7d6a8003 Merge pull request #8249 from heliapb/feat/bump_prom 2026-01-07 17:45:55 +05:30
Lukas Paluch
b45259dc4f docs(alertmanager_types.go): fix misleading doc for WebexConfig
issue was introduced in f3bd79f142
2026-01-07 12:15:13 +01:00
Hélia Barroso
dd55c9cda6 chore: update prometheus version to 3.9.0
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2026-01-07 11:12:06 +00:00
Hélia Barroso
327d864f3a feat: add azure auth workload_identity (#7998)
* feat: add azure workload idendity

* feat: add azure workload identity

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

* Update pkg/prometheus/operator.go

Co-authored-by: Simon Pasquier <spasquie@redhat.com>

* Update pkg/prometheus/operator.go

Co-authored-by: Simon Pasquier <spasquie@redhat.com>

* feat: checks

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

* feat: tests

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

* feat: tests thanos

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

* fix: comments

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

* fix: comments

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

* fix: tests

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

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2026-01-07 11:10:05 +00:00
Nutmos
a5f0f7f0c5 Feat: Add Validations to Pushover Receiver in Alertmanager Config CR (#8239)
* alertmanager: update pushover variables, add validations and update conversion method

to have more strict validations

* validation: add url validation for pushover config

to cover more use case of validation

* amcfg: update test case

to fix var error
2026-01-07 10:33:12 +01:00
Nutmos
0a6303acba Feat: Add validations for PagerDuty Receiver in Alertmanager Config CR (#8113)
* change type to url, remove operator check and add semantic validation

* update conversion config

* trigger ci

* change url to pointer and regenerate files

* add empty string test case

* update test case

* update url

* update back url validation in operator

* trigger ci

* remove url validation from operator

* trigger ci

* add exclusion of empty string

* fix typo

* add e2e test case for url

* alertmanager: update optional var type to *string and add minlength validation

to have stricter validation

* validation: update url validation

to use the new method validatURLPtr

* alertmanager: change href to URL and add validation

to cover more cases
2026-01-06 15:41:08 +01:00
Nutmos
137c9eff00 Feat: Add VictorOps Receiver CR Validations (#8220)
* alertmanager: update type

to add more validation

* validation: fix issue

wrong type

* Change to deref for shorter implementation

* alertmanager: fix typo

to address the variable type issue

* validation: update url validation

to use the new method
2026-01-05 17:14:11 +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
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
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
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]
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
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
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
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