[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 <crainte@hybridoptix.net>
This commit is contained in:
crainte
2023-02-08 23:58:04 -08:00
committed by GitHub
parent 2a6aa6588d
commit 3a7fa9c178
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 }}