Skip to content

Commit

Permalink
Cast Shard Value As Int
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmac8 committed Jan 20, 2025
1 parent 78bbe94 commit ff28365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitnami/thanos/templates/storegateway/hpa-sharded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SPDX-License-Identifier: APACHE-2.0
{{- if not (empty .Values.storegateway.sharded.timePartitioning) }}
{{- $timeShards = len .Values.storegateway.sharded.timePartitioning }}
{{- end }}
{{- $shards = mul $hashShards $timeShards }}
{{- $shards = mul $hashShards $timeShards | int }}

{{- range $index, $_ := until $shards }}
apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }}
Expand Down

0 comments on commit ff28365

Please sign in to comment.