diff --git a/charts/imgproxy/Chart.yaml b/charts/imgproxy/Chart.yaml index 29135db..2c023ee 100644 --- a/charts/imgproxy/Chart.yaml +++ b/charts/imgproxy/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.2 +version: 0.3.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/imgproxy/templates/hpa.yaml b/charts/imgproxy/templates/hpa.yaml index a98f231..bab7107 100644 --- a/charts/imgproxy/templates/hpa.yaml +++ b/charts/imgproxy/templates/hpa.yaml @@ -14,21 +14,20 @@ spec: minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- with .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: - name: memory + name: cpu target: type: Utilization averageUtilization: {{ . }} - {{- end }} - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- with .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: - name: cpu + name: memory target: type: Utilization averageUtilization: {{ . }} {{- end }} -{{- end }} - +{{- end }} \ No newline at end of file