Add namespace to hpa templates (#494)

This commit is contained in:
MonicaMagoniCom 2024-05-03 20:48:02 +02:00 committed by GitHub
parent bd8bc633df
commit c4941b32d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler kind: HorizontalPodAutoscaler
metadata: metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
namespace: {{ template "pulsar.namespace" . }}
spec: spec:
maxReplicas: {{ .Values.broker.autoscaling.maxReplicas }} maxReplicas: {{ .Values.broker.autoscaling.maxReplicas }}
{{- with .Values.broker.autoscaling.metrics }} {{- with .Values.broker.autoscaling.metrics }}

View File

@ -26,6 +26,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler kind: HorizontalPodAutoscaler
metadata: metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
namespace: {{ template "pulsar.namespace" . }}
spec: spec:
maxReplicas: {{ .Values.proxy.autoscaling.maxReplicas }} maxReplicas: {{ .Values.proxy.autoscaling.maxReplicas }}
{{- with .Values.proxy.autoscaling.metrics }} {{- with .Values.proxy.autoscaling.metrics }}