diff --git a/charts/victoria-metrics-cluster/CHANGELOG.md b/charts/victoria-metrics-cluster/CHANGELOG.md index 7a2a9af54..bc1031ddd 100644 --- a/charts/victoria-metrics-cluster/CHANGELOG.md +++ b/charts/victoria-metrics-cluster/CHANGELOG.md @@ -1,6 +1,6 @@ ## Next release -- TODO +- Fixed HPA template name ## 0.14.2 diff --git a/charts/victoria-metrics-cluster/Chart.lock b/charts/victoria-metrics-cluster/Chart.lock index 70120159f..76e3e73c6 100644 --- a/charts/victoria-metrics-cluster/Chart.lock +++ b/charts/victoria-metrics-cluster/Chart.lock @@ -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" diff --git a/charts/victoria-metrics-cluster/Chart.yaml b/charts/victoria-metrics-cluster/Chart.yaml index a6c8dd607..29f20e40a 100644 --- a/charts/victoria-metrics-cluster/Chart.yaml +++ b/charts/victoria-metrics-cluster/Chart.yaml @@ -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 diff --git a/charts/victoria-metrics-cluster/templates/hpa.yaml b/charts/victoria-metrics-cluster/templates/hpa.yaml index 284b729d9..07f921f37 100644 --- a/charts/victoria-metrics-cluster/templates/hpa.yaml +++ b/charts/victoria-metrics-cluster/templates/hpa.yaml @@ -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: