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

1193 Commits

Author SHA1 Message Date
slashexx
2f624871ef add remaining CEL Validations
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
2026-01-07 10:39:09 +05:30
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
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
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
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
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
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
Simon Pasquier
9712d0ea93 Merge branch 'release-0.87' into merge-release-0.87
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-10 14:58:54 +01:00
Simon Pasquier
650bf3c06e chore: cut v0.87.1
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-09 17:39:56 +01:00
Hélia Barroso
6382f83e0a feat: add status subresource to AlertmanagerConfig (#7999)
* feat: add status subresource to alertmanager

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

* feat: add am config beta

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

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-12-08 11:21:50 +01:00
Hélia Barroso
89e92af73f Merge pull request #8102 from heliapb/feat/add_scrape_native_histograms
feat: add `scrape_native_histograms`
2025-12-08 11:17:27 +01:00
Simon Pasquier
f09aa3caf4 feat: expose pod management policy for workloads
This commit introduces a new `podManagementPolicy` field for
statefulset-based workloads (Prometheus, PrometheusAgent, Alertmanager
and ThanosRuler). While the default will still be `Parallel`, users have
expressed the need to use `OrderedReady` in specific situations.

Closes #2753

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-28 20:07:21 +01:00
Simon Pasquier
fb6d4439a2 Merge pull request #8112 from simonpasquier/unify-http-config-for-probes
feat: unify HTTP configuration for Probe CRD
2025-11-28 16:23:56 +01:00
Simon Pasquier
355cd36130 change: add new arguments to manifests
This commit adds the following arguments in jsonnet + default manifests:

* `--watch-referenced-objects-in-all-namespaces=true`
* `--disable-unmanaged-prometheus-configuration=true`

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-28 12:43:51 +01:00
Hélia Barroso
a198a5ff2c fix: pushover doc
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-11-24 11:18:19 +00:00
Simon Pasquier
ca5bf4a119 feat: unify HTTP configuration for Probe CRD
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-21 17:42:25 +01:00
Simon Pasquier
0ff52b38b8 Cut 0.87.0 (#8109)
* Skip medium.com links in mdox configuration

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

* chore: cut v0.87.0

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

---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-21 10:47:16 +01:00
Simon Pasquier
ddbbdf4ad2 chore: cut v0.87.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-20 15:40:53 +01:00
Hélia Barroso
d1ff82ef9e feat: add support for monospace in pushoverConfig (#8018)
---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-11-20 15:25:19 +01:00
Nutmos
df692bf15f Feat: set Azure Manage Identity Client ID default to empty value (#7815)
---------

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2025-11-19 18:00:17 +01:00
Simon Pasquier
c96c4978b5 Merge remote-tracking branch 'origin/release-0.86' into merge-release-0.86
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-07 14:56:04 +01:00
Simon Pasquier
5468387275 *: cut v0.86.2
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-07 11:02:40 +01:00
Simon Pasquier
ce2b016682 Fix operator's permissions on events
Pull requests #7867 and #7953 switched from the core Events API to the
new `events.k8s.io` API group but we forgot to update the RBAC
permissions of the prometheus-operator Service Account and the
verification which happens during the startup.

Closes #8076

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-06 15:47:55 +01:00
Craig Ringer
fe00f73cb4 Merge pull request #7981 from ringerc/docs-portNumber-acts-as-selector
docs: Mention that portNumber behaves like a selector
2025-11-03 13:02:05 +00:00
Simon Pasquier
a2d5da1922 Merge pull request #8017 from simonpasquier/consistent-scheme-type
chore: update documentation for the 'scheme' field
2025-10-16 16:48:49 +02:00
Jayapriya Pai
4edb6b350c Merge pull request #8022 from simonpasquier/clarify-metadataconfig-remote-write
chore: clarify documentation on metadataConfig
2025-10-16 12:47:37 +05:30
Simon Pasquier
772eefb11f Merge pull request #8027 from prometheus-operator/release-0.86
Merge release 0.86 back into main
2025-10-13 17:15:20 +02:00
Jayapriya Pai
6406eb7b96 chore: cut v0.86.1
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2025-10-13 18:45:16 +05:30
Simon Pasquier
40a5fa96cf chore: clarify documentation on metadataConfig
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-10-13 13:13:24 +02:00
Simon Pasquier
8116f769c1 chore: update documentation for the 'scheme' field
This commit also clarifies the meaning of the 'url' field in the Prober
spec which isn't a "true" URL.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-10-10 16:09:57 +02:00
Y@&h
4ca908cb21 PrometheusRule status update after reconcillation from prometheus (#8005) 2025-10-10 10:12:41 +00:00
Simon Pasquier
e4c727291a Merge pull request #7992 from appian/usefipsnit
chore: Update FIPS STS endpoint description
2025-10-07 16:59:03 +02:00
Jayapriya Pai
3e17d60e48 Merge pull request #7991 from slashpai/cut-0.86
chore: cut v0.86.0
2025-10-07 19:48:15 +05:30
Sam McBroom
2fc9523883 chore: Update FIPS STS endpoint description
Signed-off-by: Sam McBroom <sam.mcbroom@appian.com>
2025-10-07 07:17:43 -07:00
Jayapriya Pai
cc6aec1ebd chore: cut v0.86.0
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2025-10-07 19:01:55 +05:30
Jayapriya Pai
264d19a9a9 Merge pull request #7987 from appian/usefips
feat: add support for configuring `use_fips_sts_endpoint` in sigv4 config
2025-10-07 19:01:19 +05:30
Simon Pasquier
51cba2baef Merge pull request #7975 from simonpasquier/drop-invalid-authn-settings
fix: prevent duplicate authentication settings in PodMonitor
2025-10-07 15:09:09 +02:00
Jayapriya Pai
bdf0c5b644 Merge pull request #7985 from slashpai/utf8-label-fix
feat: allow UTF-8 characters in label names
2025-10-07 15:27:24 +05:30
Jayapriya Pai
a2e1f38665 feat: allow UTF-8 characters in label names
Follow-up from #7637 to complete the UTF8 support for labels

Related-to: #7362

Assisted-by: Cursor
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2025-10-07 14:26:37 +05:30
Sam McBroom
150292197b feat: add support for configuring use_fips_sts_endpoint in sigv4 config
Using `AWS_USE_FIPS_ENDPOINT` to configure FIPS endpoint usage no longer
works (see https://github.com/prometheus/prometheus/issues/16752). This
must be done using the `use_fips_sts_endpoint` config option added in
https://github.com/prometheus/common/pull/649. It is also available in
the new sigv4 package: https://github.com/prometheus/sigv4.

Fixes #7986

Signed-off-by: Sam McBroom <sam.mcbroom@appian.com>
2025-10-06 13:57:10 -07:00