From faae40ab788d91dc4b7dbf110bbc1d3fcf4bf29c Mon Sep 17 00:00:00 2001 From: Rhea Danzey Date: Mon, 21 Jul 2025 04:13:25 -0500 Subject: [PATCH] fix(helm): Add release namespace metadata to HorizontalPodAutoscaling that lack it (#18453) Signed-off-by: Rhea Danzey Co-authored-by: J Stickler --- production/helm/loki/templates/backend/hpa.yaml | 1 + production/helm/loki/templates/distributor/hpa.yaml | 1 + production/helm/loki/templates/read/hpa.yaml | 1 + production/helm/loki/templates/single-binary/hpa.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/production/helm/loki/templates/backend/hpa.yaml b/production/helm/loki/templates/backend/hpa.yaml index ea834d6e09..f9e7e106f2 100644 --- a/production/helm/loki/templates/backend/hpa.yaml +++ b/production/helm/loki/templates/backend/hpa.yaml @@ -9,6 +9,7 @@ apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: {{ include "loki.backendFullname" . }} + namespace: {{ $.Release.Namespace }} labels: {{- include "loki.backendLabels" . | nindent 4 }} spec: diff --git a/production/helm/loki/templates/distributor/hpa.yaml b/production/helm/loki/templates/distributor/hpa.yaml index 838a310048..582a4fac1d 100644 --- a/production/helm/loki/templates/distributor/hpa.yaml +++ b/production/helm/loki/templates/distributor/hpa.yaml @@ -5,6 +5,7 @@ apiVersion: {{ $apiVersion }} kind: HorizontalPodAutoscaler metadata: name: {{ include "loki.distributorFullname" . }} + namespace: {{ $.Release.Namespace }} labels: {{- include "loki.distributorLabels" . | nindent 4 }} spec: diff --git a/production/helm/loki/templates/read/hpa.yaml b/production/helm/loki/templates/read/hpa.yaml index de5afcc11d..7846642857 100644 --- a/production/helm/loki/templates/read/hpa.yaml +++ b/production/helm/loki/templates/read/hpa.yaml @@ -9,6 +9,7 @@ apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: {{ include "loki.readFullname" . }} + namespace: {{ $.Release.Namespace }} labels: {{- include "loki.readLabels" . | nindent 4 }} spec: diff --git a/production/helm/loki/templates/single-binary/hpa.yaml b/production/helm/loki/templates/single-binary/hpa.yaml index c529f1899f..8e77648ba4 100644 --- a/production/helm/loki/templates/single-binary/hpa.yaml +++ b/production/helm/loki/templates/single-binary/hpa.yaml @@ -10,6 +10,7 @@ apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: {{ include "loki.singleBinaryFullname" . }} + namespace: {{ $.Release.Namespace }} labels: {{- include "loki.singleBinaryLabels" . | nindent 4 }} spec: