mirror of
https://github.com/bitnami/charts.git
synced 2026-03-29 16:27:11 +08:00
[bitnami/thanos]: correct labelSelector with shard key for storegateway affinity (#35440)
* fix(thanos): correct labelSelector with shard key for storegateway affinity Signed-off-by: fe80 <steffyfort@gmail.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> --------- Signed-off-by: fe80 <steffyfort@gmail.com> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 17.2.5 (2025-08-07)
|
||||
## 17.2.6 (2025-08-08)
|
||||
|
||||
* [bitnami/thanos] :zap: :arrow_up: Update dependency references ([#35635](https://github.com/bitnami/charts/pull/35635))
|
||||
* [bitnami/thanos]: correct labelSelector with shard key for storegateway affinity ([#35440](https://github.com/bitnami/charts/pull/35440))
|
||||
|
||||
## <small>17.2.5 (2025-08-07)</small>
|
||||
|
||||
* [bitnami/thanos] :zap: :arrow_up: Update dependency references (#35635) ([3356744](https://github.com/bitnami/charts/commit/3356744640e3af8a7d3db823f15ce442e157abeb)), closes [#35635](https://github.com/bitnami/charts/issues/35635)
|
||||
|
||||
## <small>17.2.4 (2025-08-07)</small>
|
||||
|
||||
|
||||
@@ -38,4 +38,4 @@ maintainers:
|
||||
name: thanos
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/thanos
|
||||
version: 17.2.5
|
||||
version: 17.2.6
|
||||
|
||||
@@ -23,6 +23,7 @@ SPDX-License-Identifier: APACHE-2.0
|
||||
{{- range $hashIndex, $_ := until $hashShards }}
|
||||
{{- range $timeIndex, $_ := until $timeShards }}
|
||||
{{- $index := add (mul $hashIndex $timeShards) $timeIndex }}
|
||||
{{- $shardSelector := dict "shard" $index }}
|
||||
apiVersion: {{ include "common.capabilities.statefulset.apiVersion" $ }}
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
@@ -90,8 +91,8 @@ spec:
|
||||
affinity: {{- include "common.tplvalues.render" (dict "value" $.Values.storegateway.affinity "context" (set $ "shardLoopId" $index)) | nindent 8 }}
|
||||
{{- else }}
|
||||
affinity:
|
||||
podAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.storegateway.podAffinityPreset "component" "storegateway" "customLabels" $podLabels "context" $) | nindent 10 }}
|
||||
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.storegateway.podAntiAffinityPreset "component" "storegateway" "customLabels" $podLabels "context" $) | nindent 10 }}
|
||||
podAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.storegateway.podAffinityPreset "component" "storegateway" "customLabels" $podLabels "extraMatchLabels" $shardSelector "context" $) | nindent 10 }}
|
||||
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" $.Values.storegateway.podAntiAffinityPreset "component" "storegateway" "customLabels" $podLabels "extraMatchLabels" $shardSelector "context" $) | nindent 10 }}
|
||||
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" $.Values.storegateway.nodeAffinityPreset.type "key" $.Values.storegateway.nodeAffinityPreset.key "values" $.Values.storegateway.nodeAffinityPreset.values) | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- if $.Values.storegateway.dnsConfig }}
|
||||
|
||||
Reference in New Issue
Block a user