From 3a7fa9c178f0d96c8f8b9fd37577cc6bc48029b5 Mon Sep 17 00:00:00 2001 From: crainte Date: Wed, 8 Feb 2023 23:58:04 -0800 Subject: [PATCH] [bitnami/thanos] fix context for statefulset (#14797) The original fix for hardcoded apiversion used the wrong context in the range statement which results in a template error. Signed-off-by: Chris Alexander --- bitnami/thanos/Chart.yaml | 2 +- bitnami/thanos/templates/storegateway/hpa-sharded.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/thanos/Chart.yaml b/bitnami/thanos/Chart.yaml index abd2d40f3e..877e452801 100644 --- a/bitnami/thanos/Chart.yaml +++ b/bitnami/thanos/Chart.yaml @@ -28,4 +28,4 @@ name: thanos sources: - https://github.com/bitnami/containers/tree/main/bitnami/thanos - https://thanos.io -version: 12.0.3 +version: 12.0.4 diff --git a/bitnami/thanos/templates/storegateway/hpa-sharded.yaml b/bitnami/thanos/templates/storegateway/hpa-sharded.yaml index 12f5f1564a..4a5088af36 100644 --- a/bitnami/thanos/templates/storegateway/hpa-sharded.yaml +++ b/bitnami/thanos/templates/storegateway/hpa-sharded.yaml @@ -24,7 +24,7 @@ metadata: {{- end }} spec: scaleTargetRef: - apiVersion: {{ include "common.capabilities.statefulset.apiVersion" . }} + apiVersion: {{ include "common.capabilities.statefulset.apiVersion" $ }} kind: StatefulSet name: {{ printf "%s-storegateway-%s" (include "common.names.fullname" $) (toString $index) | trunc 63 | trimSuffix "-" }} minReplicas: {{ $.Values.storegateway.autoscaling.minReplicas }}