diff options
author | Erik Sundell <erik.i.sundell@gmail.com> | 2022-11-10 23:24:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 23:24:39 +0100 |
commit | 302a58c22b08a5cb6682a683dce501e030413bf4 (patch) | |
tree | 4a1efafbbf5750152e40afc9e90cf5179a9b0039 /chart/templates/hpa.yaml | |
parent | 86f6631d283423746b8fdf0a618f6e0abafea099 (diff) |
helm: fix consistent indentation, chomping, and use of with (#19918)
Diffstat (limited to 'chart/templates/hpa.yaml')
-rw-r--r-- | chart/templates/hpa.yaml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chart/templates/hpa.yaml b/chart/templates/hpa.yaml index 3f9aa8a93..b23b2cb16 100644 --- a/chart/templates/hpa.yaml +++ b/chart/templates/hpa.yaml @@ -1,4 +1,4 @@ -{{- if .Values.autoscaling.enabled }} +{{- if .Values.autoscaling.enabled -}} apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: @@ -13,16 +13,16 @@ spec: minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: name: cpu targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} + {{- end }} {{- end }} |