diff --git a/bitnami/redis/Chart.yaml b/bitnami/redis/Chart.yaml index 207d215d41..5360fde00c 100644 --- a/bitnami/redis/Chart.yaml +++ b/bitnami/redis/Chart.yaml @@ -22,4 +22,4 @@ maintainers: name: redis sources: - https://github.com/bitnami/containers/tree/main/bitnami/redis -version: 17.10.0 +version: 17.10.1 diff --git a/bitnami/redis/templates/replicas/hpa.yaml b/bitnami/redis/templates/replicas/hpa.yaml index ea069a8eb7..67d1cc18ad 100644 --- a/bitnami/redis/templates/replicas/hpa.yaml +++ b/bitnami/redis/templates/replicas/hpa.yaml @@ -20,18 +20,6 @@ spec: minReplicas: {{ .Values.replica.autoscaling.minReplicas }} maxReplicas: {{ .Values.replica.autoscaling.maxReplicas }} metrics: - {{- if .Values.replica.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - {{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }} - targetAverageUtilization: {{ .Values.replica.autoscaling.targetMemory }} - {{- else }} - target: - type: Utilization - averageUtilization: {{ .Values.replica.autoscaling.targetMemory }} - {{- end }} - {{- end }} {{- if .Values.replica.autoscaling.targetCPU }} - type: Resource resource: @@ -44,4 +32,16 @@ spec: averageUtilization: {{ .Values.replica.autoscaling.targetCPU }} {{- end }} {{- end }} + {{- if .Values.replica.autoscaling.targetMemory }} + - type: Resource + resource: + name: memory + {{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }} + targetAverageUtilization: {{ .Values.replica.autoscaling.targetMemory }} + {{- else }} + target: + type: Utilization + averageUtilization: {{ .Values.replica.autoscaling.targetMemory }} + {{- end }} + {{- end }} {{- end }}