Skip to content

Commit

Permalink
cluster: fixed hpa template name (#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk authored Oct 18, 2024
1 parent b12e4d4 commit 5a63c4e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-cluster/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- Fixed HPA template name

## 0.14.2

Expand Down
6 changes: 3 additions & 3 deletions charts/victoria-metrics-cluster/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: victoria-metrics-common
repository: https://victoriametrics.github.io/helm-charts
version: 0.0.15
digest: sha256:28ebee3a7c14718527f72d912db85bb53fa05a0ffce17dfaab6ea836d7b495d6
generated: "2024-10-11T07:19:03.362358967Z"
version: 0.0.16
digest: sha256:7549c73bc949e7f40e67441c4a3a151471d4e258e9d32cc1c0f879f70825cce4
generated: "2024-10-18T20:05:59.105869+03:00"
2 changes: 1 addition & 1 deletion charts/victoria-metrics-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: application
appVersion: v1.104.0
description: Victoria Metrics Cluster version - high-performance, cost-effective and scalable TSDB, long-term remote storage for Prometheus
name: victoria-metrics-cluster
version: 0.14.2
version: 0.14.3
sources:
- https://github.com/VictoriaMetrics/helm-charts
icon: https://avatars.githubusercontent.com/u/43720803?s=200&v=4
Expand Down
5 changes: 3 additions & 2 deletions charts/victoria-metrics-cluster/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
{{- if and (kindIs "map" $app) $app.enabled ($app.horizontalPodAutoscaler).enabled }}
{{- $hpa := $app.horizontalPodAutoscaler }}
{{- $_ := set $ctx "extraLabels" $app.extraLabels }}
{{- $_ := set $ctx "appKey" $name }}
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
{{- $labelsTpl := printf "victoria-metrics.%s.labels" $name }}
labels: {{ include $labelsTpl $ctx | nindent 4 }}
{{- $nameTpl := printf "victoria-metrics.%s.fullname" $name }}
{{- $name := include $nameTpl $ }}
{{- $serviceName := include "vm.plain.fullname" $ctx }}
{{- $name := include "vm.plain.fullname" $ctx }}
name: {{ $name }}
namespace: {{ include "vm.namespace" $ }}
spec:
Expand Down

0 comments on commit 5a63c4e

Please sign in to comment.