From ad49e0cd8a002c62e6e4037c64f003c13b09d565 Mon Sep 17 00:00:00 2001 From: Tom M G Date: Sun, 3 Dec 2023 16:33:48 +0100 Subject: [PATCH] Use namespace from Helm release --- charts/tempo-distributed/templates/compactor/hpa.yaml | 1 + .../tempo-distributed/templates/compactor/keda-scaledObject.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/charts/tempo-distributed/templates/compactor/hpa.yaml b/charts/tempo-distributed/templates/compactor/hpa.yaml index 0df8ac6307..7ee1dc6c4c 100644 --- a/charts/tempo-distributed/templates/compactor/hpa.yaml +++ b/charts/tempo-distributed/templates/compactor/hpa.yaml @@ -4,6 +4,7 @@ apiVersion: {{ $apiVersion }} kind: HorizontalPodAutoscaler metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "compactor") }} + namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "compactor") | nindent 4 }} spec: diff --git a/charts/tempo-distributed/templates/compactor/keda-scaledObject.yaml b/charts/tempo-distributed/templates/compactor/keda-scaledObject.yaml index 2763dcedf2..180bad5c0d 100644 --- a/charts/tempo-distributed/templates/compactor/keda-scaledObject.yaml +++ b/charts/tempo-distributed/templates/compactor/keda-scaledObject.yaml @@ -3,6 +3,7 @@ apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "compactor") }} + namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "compactor") | nindent 4 }} spec: