Commit 2f0b29f
authored
fix(monitoring): use a valid match-nothing selector for parca-analytics (#474)
The In: [] selector from the previous PR is rejected by Kubernetes'
own API validation (In/NotIn require a non-empty values set), which
made Prometheus Operator's reconciliation fail outright:
selecting ServiceMonitors failed: values: Invalid value: []string(nil):
for 'in', 'notin' operators, values set can't be empty
Confirmed live: prometheus-analytics kept scraping thanos-sidecar/
thanos-query/thanos-store after that PR merged, because it never
regenerated its scrape config at all. matchLabels on a label nothing
carries has no such non-empty-set constraint and reliably matches
zero objects.1 parent 9cd8c21 commit 2f0b29f
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
342 | 344 | | |
343 | 345 | | |
344 | | - | |
345 | | - | |
| 346 | + | |
| 347 | + | |
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
| |||
0 commit comments