[bitnami/thanos] Fix sharded storegateway cache configs (#26490)

* Mount the sharded storegateway cache config when thanos.storegateway.createConfigmap is set

Signed-off-by: Sergey Grebenshchikov <sgreben@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Sergey Grebenshchikov <sgreben@users.noreply.github.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Andrés Bono <andresbono@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
Sergey Grebenshchikov
2024-06-11 09:17:44 +02:00
committed by GitHub
parent 695dc9dbc9
commit 54afe30e41
3 changed files with 10 additions and 6 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 15.7.3 (2024-06-10)
## 15.7.4 (2024-06-11)
* [bitnami/thanos] add service monitor labels ([#26880](https://github.com/bitnami/charts/pull/26880))
* [bitnami/thanos] Fix sharded storegateway cache configs ([#26490](https://github.com/bitnami/charts/pull/26490))
## <small>15.7.3 (2024-06-10)</small>
* [bitnami/thanos] add service monitor labels (#26880) ([162d466](https://github.com/bitnami/charts/commit/162d466ef79df488b418ec184952e04615ed8ec6)), closes [#26880](https://github.com/bitnami/charts/issues/26880)
## <small>15.7.2 (2024-06-06)</small>

View File

@@ -35,4 +35,4 @@ maintainers:
name: thanos
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/thanos
version: 15.7.3
version: 15.7.4

View File

@@ -152,7 +152,7 @@ spec:
{{- if $.Values.bucketCacheConfig }}
- --store.caching-bucket.config-file=/conf/cache/bucket-cache.yml
{{- end }}
{{- if or $.Values.storegateway.config $.Values.storegateway.existingConfigmap }}
{{- if or (include "thanos.storegateway.createConfigmap" .) .Values.storegateway.existingConfigmap }}
- --index-cache.config-file=/conf/cache/config.yml
{{- end }}
{{- if $.Values.storegateway.grpc.server.tls.enabled }}
@@ -281,7 +281,7 @@ spec:
{{- end }}
- name: data
mountPath: /data
{{- if or $.Values.storegateway.config $.Values.storegateway.existingConfigmap }}
{{- if or (include "thanos.storegateway.createConfigmap" .) .Values.storegateway.existingConfigmap }}
- name: cache-config
mountPath: /conf/cache
{{- end }}
@@ -312,7 +312,7 @@ spec:
{{- if $.Values.storegateway.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" $.Values.storegateway.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- if or $.Values.storegateway.config $.Values.storegateway.existingConfigmap }}
{{- if or (include "thanos.storegateway.createConfigmap" .) .Values.storegateway.existingConfigmap }}
- name: cache-config
configMap:
name: {{ include "thanos.storegateway.configmapName" $ }}