From dc6b84d998247c83e4fe7ebc3faf0ef1d9fe1e88 Mon Sep 17 00:00:00 2001 From: Redish101 Date: Mon, 28 Jul 2025 18:42:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=9C=A8`fro?= =?UTF-8?q?ntend.enabled=3Dfalse`=E6=97=B6=E4=BB=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=89=8D=E7=AB=AFhpa=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chart/templates/hpa.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chart/templates/hpa.yaml b/chart/templates/hpa.yaml index 8575e50..64b5b0e 100644 --- a/chart/templates/hpa.yaml +++ b/chart/templates/hpa.yaml @@ -29,6 +29,7 @@ spec: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} +{{- if .Values.frontend.enabled -}} --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler @@ -60,4 +61,5 @@ spec: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} +{{- end -}} {{- end }}