From 332c3cd1eba6796b83a445a00944dd4c1a679486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20G=C3=B3mez?= Date: Fri, 29 Nov 2024 09:53:24 -0500 Subject: [PATCH] Improved order --- charts/wiremock/templates/hpa.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/wiremock/templates/hpa.yaml b/charts/wiremock/templates/hpa.yaml index 3b38c10..b90548f 100644 --- a/charts/wiremock/templates/hpa.yaml +++ b/charts/wiremock/templates/hpa.yaml @@ -14,19 +14,19 @@ spec: maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - resource: + - type: Resource + resource: name: cpu target: type: Utilization averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource {{- end }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - resource: + - type: Resource + resource: name: memory target: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource {{- end }} {{- end }}