Skip to content

Commit 18b0d0a

Browse files
[bitnami/wordpress] Invert memory/cpu in hpa for Argo CD users (bitnami#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>
1 parent c02304b commit 18b0d0a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

bitnami/wordpress/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ name: wordpress
3636
sources:
3737
- https://github.com/bitnami/containers/tree/main/bitnami/wordpress
3838
- https://wordpress.org/
39-
version: 15.2.24
39+
version: 15.2.25

bitnami/wordpress/templates/hpa.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,28 @@ spec:
1919
minReplicas: {{ .Values.autoscaling.minReplicas }}
2020
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
2121
metrics:
22-
{{- if .Values.autoscaling.targetCPU }}
22+
{{- if .Values.autoscaling.targetMemory }}
2323
- type: Resource
2424
resource:
25-
name: cpu
25+
name: memory
2626
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }}
27-
targetAverageUtilization: {{ .Values.autoscaling.targetCPU }}
27+
targetAverageUtilization: {{ .Values.autoscaling.targetMemory }}
2828
{{- else }}
2929
target:
3030
type: Utilization
31-
averageUtilization: {{ .Values.autoscaling.targetCPU }}
31+
averageUtilization: {{ .Values.autoscaling.targetMemory }}
3232
{{- end }}
3333
{{- end }}
34-
{{- if .Values.autoscaling.targetMemory }}
34+
{{- if .Values.autoscaling.targetCPU }}
3535
- type: Resource
3636
resource:
37-
name: memory
37+
name: cpu
3838
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }}
39-
targetAverageUtilization: {{ .Values.autoscaling.targetMemory }}
39+
targetAverageUtilization: {{ .Values.autoscaling.targetCPU }}
4040
{{- else }}
4141
target:
4242
type: Utilization
43-
averageUtilization: {{ .Values.autoscaling.targetMemory }}
43+
averageUtilization: {{ .Values.autoscaling.targetCPU }}
4444
{{- end }}
4545
{{- end }}
4646
{{- end }}

0 commit comments

Comments
 (0)