Commit ec14e21
authored
Jsonnet: allow to selectively configure ZPDB (#13813)
#### What this PR does
In this PR I'm proposing a jsonnet change to allow to selectively
configure ZPDB on a per-component basis: remove
`multi_zone_zpdb_enabled` and replace it with
`multi_zone_ingester_zpdb_enabled` and
`multi_zone_store_gateway_zpdb_enabled`.
#### Which issue(s) this PR fixes or relates to
N/A
#### Checklist
- [ ] Tests updated.
- [ ] Documentation added.
- [x] `CHANGELOG.md` updated - the order of entries should be
`[CHANGE]`, `[FEATURE]`, `[ENHANCEMENT]`, `[BUGFIX]`. If changelog entry
is not needed, please add the `changelog-not-needed` label to the PR.
- [ ]
[`about-versioning.md`](https://github.com/grafana/mimir/blob/main/docs/sources/mimir/configure/about-versioning.md)
updated with experimental features.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Make ZPDB selectable per component by replacing the global flag with
`multi_zone_ingester_zpdb_enabled` and
`multi_zone_store_gateway_zpdb_enabled` and updating PDB logic
accordingly.
>
> - **Jsonnet (multi-zone)**:
> - Introduce per-component ZPDB toggles:
`multi_zone_ingester_zpdb_enabled` and
`multi_zone_store_gateway_zpdb_enabled` (default to their component
enablement).
> - Replace uses of global `multi_zone_zpdb_enabled`; update assertions
to check `rollout_operator_webhooks_enabled` per component.
> - Update rollout PDB creation to conditionally use `$.newZPDB(...)`
based on the new per-component flags.
> - Remove obsolete assertion and config related to the global ZPDB flag
in `operations/mimir/multi-zone-common.libsonnet`.
> - **Docs**:
> - Update `CHANGELOG.md` with the config change and rationale.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
16e0390. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Signed-off-by: Marco Pracucci <[email protected]>1 parent 686a666 commit ec14e21
File tree
4 files changed
+8
-6
lines changed- operations/mimir
4 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
| |||
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | | - | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | | - | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
172 | | - | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
0 commit comments