redis chart: sort alphabetically hpa metrics, fixes #16198 (#16199)

* redis chart: sort alphabetically hpa metrics, closes #16198

Change the order of the HPA metrics to avoid ArgoCD incorrectly reporting OutOfSync

Signed-off-by: Patrizio Bruno <89150390+patriziobrunops@users.noreply.github.com>

* Update Chart.yaml

Signed-off-by: Patrizio Bruno <89150390+patriziobrunops@users.noreply.github.com>

---------

Signed-off-by: Patrizio Bruno <89150390+patriziobrunops@users.noreply.github.com>
This commit is contained in:
Patrizio Bruno
2023-04-25 08:15:03 +01:00
committed by GitHub
parent d1cbf66dba
commit 0f3be36f18
2 changed files with 13 additions and 13 deletions

View File

@@ -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

View File

@@ -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 }}