[bitnami/wordpress] Invert memory/cpu in hpa for Argo CD users (#14085)

* Change cpu/memory order for Argo CD

Signed-off-by: Callixte de Vulpillières <callixtedev@hotmail.fr>

* Update version

Signed-off-by: Callixte de Vulpillières <callixtedev@hotmail.fr>

* [bitnami/wordpress] Bump version

Signed-off-by: Celia Garcia <61272496+CeliaGMqrz@users.noreply.github.com>

Signed-off-by: Callixte de Vulpillières <callixtedev@hotmail.fr>
Signed-off-by: Celia Garcia <61272496+CeliaGMqrz@users.noreply.github.com>
Co-authored-by: Celia Garcia <61272496+CeliaGMqrz@users.noreply.github.com>
This commit is contained in:
Callixte de Vulpillières
2023-01-12 13:08:10 +01:00
committed by GitHub
parent c02304be1e
commit 18b0d0a204
2 changed files with 13 additions and 13 deletions

View File

@@ -36,4 +36,4 @@ name: wordpress
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/wordpress
- https://wordpress.org/
version: 15.2.24
version: 15.2.25

View File

@@ -19,18 +19,6 @@ spec:
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }}
targetAverageUtilization: {{ .Values.autoscaling.targetCPU }}
{{- else }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPU }}
{{- end }}
{{- end }}
{{- if .Values.autoscaling.targetMemory }}
- type: Resource
resource:
@@ -43,4 +31,16 @@ spec:
averageUtilization: {{ .Values.autoscaling.targetMemory }}
{{- end }}
{{- end }}
{{- if .Values.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }}
targetAverageUtilization: {{ .Values.autoscaling.targetCPU }}
{{- else }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPU }}
{{- end }}
{{- end }}
{{- end }}