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

617 Commits

Author SHA1 Message Date
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
Simon Pasquier
24d828c680 feat: add new NoSelectedResources reason
This commit introduces the `NoSelectedResources` reason for the
`Reconciled` condition when a workload object selects no resources
(valid or invalid). It should make it easier to detect when resource
selectors are null or match no resource.

The `Alertmanager` resource is the exception because the configuration
may be provided only via a reference to a Secret key.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-12-01 11:44:43 +01:00
Simon Pasquier
1bbd19e13e Merge pull request #8123 from simonpasquier/fix-test
test: fix testStuckStatefulSetRollout
2025-11-28 20:05:46 +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
b6c1bb9dbb test: fix testStuckStatefulSetRollout
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-28 15:56:45 +01:00
Simon Pasquier
43cc1e16ad Merge pull request #8120 from simonpasquier/change-default-args
change: add new arguments to manifests
2025-11-28 14:56:57 +01:00
Simon Pasquier
350bde905b test: ensure that bad rollouts can be reverted
This commit adds a test ensuring that a bad statefulset definition (due
to an invalid image in this case) doesn't lead to a stuck roll-out once
the definition is fixed.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-28 14:09:41 +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
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
Jayapriya Pai
bf79619068 tests: skip UTF8 e2e tests for Prometheus V2 (#8087)
* Revert "test: fix testPrometheusUTF8LabelSupport for Prometheus V2"

This reverts commit fdeaa44a81.

* tests: skip utf8 tests for prometheus v2

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

---------

Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2025-11-12 14:12:59 +01:00
Y@&h
3ab43822d2 Merge pull request #8086 from yp969803/issue8068
prometheusRule binding cleanup in thanousRuler
2025-11-12 13:47:40 +01:00
Y@&h
814f26fb56 Merge pull request #8069 from yp969803/issue8067
PrometheusRule status update after reconcillation from thanosRuler
2025-11-10 14:44:44 +00:00
Simon Pasquier
fad6a8f22c test: fix RmPrometheusRuleBindingDuringWorkloadDelete
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-11-07 14:06:30 +01:00
dongjiang
fcc78c7e07 change sort to slices package
Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-11-04 16:28:38 +08:00
Y@&h
84231e573f add finalizer syncer for Thanos Ruler (#8060) 2025-11-03 13:45:33 +01:00
Y@&h
0ecdf47862 Cleanup of bindings for PrometheusRules in prometheus (#8024) 2025-10-17 17:25:49 +02: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
Simon Pasquier
79fb2e3486 Merge pull request #8010 from simonpasquier/fix-5085-2
feat: avoid statefulset's rollout due to new rule configmaps
2025-10-16 13:05:43 +02:00
Simon Pasquier
80553769d5 feat: avoid statefulset's rollout due to new rule configmaps
This commit avoids the situation where the operator would update the
StatefulSet because the concatenation of configured rules exceeds the
maximum ConfigMap size. To alleviate the issue, the operator now
configures the StatefulSet to always mount 3 "rule" ConfigMaps with
"optional: true". When the operator generates an additional ConfigMap,
it will get mounted automatically into the pod and the config-reloader
sidecar will detect and apply the new configuration. When the
number of "concrete" ConfigMaps decreases, the operation is also
non-disruptive.

The number has been chosen arbitrarily and it could change in the future
but 3 seems a good choice (original reports were complaining about the
number of ConfigMaps fluctuating between 1 and 2).

The change applies both to Prometheus and ThanosRuler.

Closes #5085

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-10-15 11:04:23 +02:00
Jayapriya Pai
fdeaa44a81 test: fix testPrometheusUTF8LabelSupport for Prometheus V2
Assisted-By: Cursor
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2025-10-15 13:17:20 +05:30
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
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
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
dongjiang
1936e40708 feat: Remove binding from Probe's status when workload deletd or invalid Ref (#7980)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-10-06 12:20:26 +02:00
Jayapriya Pai
cc19d0e3fc feat: add support for UTF8 labels and rules (#7637)
for admission webhook default is legacy validation

Assissted-By: Cursor
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2025-10-06 15:03:21 +05:30
Simon Pasquier
431f734509 fix: prevent duplicate authentication settings in PodMonitor
This commit ensures that the operator discards PodMonitor resources with
duplicate authentication settings. Otherwise Prometheus fails to load
the generated configuration.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-10-03 15:52:13 +02:00
Y@&h
3b33e68495 ScrapeConfig Status Subresource Removal from prometheus (#7969) 2025-10-03 09:49:21 +02:00
Y@&h
ca51ba7f8f ScrapeConfig status update at reconcillation (#7964) 2025-10-02 12:06:46 +02:00
Nutmos
15a6fc950a Merge pull request #7966 from nutmos/refactor-kuma-sd
Chore: Refactor KumaSD
2025-10-02 09:22:21 +02:00
Simon Pasquier
07cfc8b26d test: expose UTF-8 metric with instrumented app
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-09-29 16:19:49 +02:00
dongjiang
3ff38ebe62 chore: Update golangci-lint version to v2.5.0 (#7949)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
2025-09-25 14:11:04 +02:00
dongjiang
4f2b3121a8 feat: update probe status subresource on Prometheus reconciliations (#7934)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2025-09-24 10:41:43 +02:00
Y@&h
7a2bb75866 Remove binding from PodMonitor's status when workload deletd or invalid Ref (#7936)
* feat:  PodMonitor binding removal

* feat: tests for binding removals from podMon status
2025-09-23 07:41:58 +00:00
Hélia Barroso
69076602c7 feat: add spell check workflow (#7909)
* feat: add spell check workflow

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

* fix: test names

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

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-09-22 14:29:59 +02:00
Simon Pasquier
471d4a7df7 chore: collect Kubernetes resources on failed test
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-09-18 15:03:49 +02:00
Y@&h
50a1645ea7 Update PodMonitor's status subresource on Prometheus reconciliations (#7929) 2025-09-17 15:52:10 +02:00
Simon Pasquier
26889776b4 test: collect all custom resources on failed test
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-09-17 14:29:41 +02:00
Y@&h
7b38255e11 Merge pull request #7896 from yp969803/issue7884
Config Status Subresource finalizer in prometheusAgent
2025-09-16 08:26:13 +00:00
Simon Pasquier
8568c904a0 chore: log ServiceMonitor resources in e2e tests
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-09-08 14:59:40 +02:00
Y@&h
3d04de8b9c Merge pull request #7795 from yp969803/issue7794
Remove binding from the smon status, if the ref workload is deleted
2025-09-05 16:51:28 +02:00
Simon Pasquier
7018b0273f test: add e2e status test with multiple workloads
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-09-03 09:59:56 +02:00
Simon Pasquier
c5c52f9617 chore: add e2e test for lazy status updates (#7852)
This commit extends the existing end-to-end test on the ServiceMonitor
status to ensure that the operator only updates the status when a change
actually happened.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-09-02 09:16:18 +02:00
Nutmos
269ee842b3 Merge pull request #7856 from nutmos/feat/add-eureka-sd-e2e-test-cases
Chore: Update test cases and validation for Euraka SD
2025-09-01 16:18:09 +02:00
Simon Pasquier
13319b5587 chore: add e2e test for lazy status updates
This commit extends the existing end-to-end test on the ServiceMonitor
status to ensure that the operator only updates the status when a change
actually happened.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-09-01 15:21:38 +02:00
Hélia Barroso
cacffa596c feat: Apply modernize analyzer to the codebase (#7854)
Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
2025-09-01 11:33:41 +02:00
Simon Pasquier
eb2e1d01c9 update e2e test cases (#7841) 2025-08-29 16:34:13 +02:00
Y@&h
3110665544 Remove invaldBindings from smon status (#7836) 2025-08-27 16:44:09 +02:00
Nattapong Ekudomsuk
8e5ceb3f8f update e2e test cases 2025-08-27 20:39:22 +08:00
Nutmos
47718ecc7c Chore: Update test cases for NomadSD (#7838)
* update e2e scrape config
2025-08-27 14:24:42 +02:00