Commit Graph
1 Commits
Author SHA1 Message Date
78410dd9a5 [bitnami/thanos] per-shard extraFlags + shardLoopId in sharded storegateway (#36543)
* [bitnami/thanos] per-shard extraFlags + shardLoopId in sharded storegateway

Brings the sharded storegateway in line with capabilities other sharded fields already provide:

- Each `timePartitioning` entry may now set its own `extraFlags` list, appended to the global `storegateway.extraFlags`. Mirrors the existing per-partition `resources` override.
- `topologySpreadConstraints` is now rendered with `shardLoopId` in context, matching what `affinity` / `nodeSelector` / `tolerations` already do. Users can write a per-shard label selector (e.g. `shard: '{{ .shardLoopId }}'`) so each shard's replicas spread independently.

Also defines `$partition` once at the top of the iteration loop rather than re-extracting it via `slice ... | first` in each block.

Signed-off-by: Elliot Kennedy <me@elken.io>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Elliot Kennedy <me@elken.io>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
2026-06-08 09:09:41 +02:00