Skip to content

Commit 92961b8

Browse files
committed
Add customMetrics support to HPA autoscaling
Summary: Adds a configurable `customMetrics` list to the WhatsApp proxy chart's autoscaling values, rendered into the HPA template's metrics section. This allows defining custom autoscaling metrics beyond CPU/memory. Test Plan: - helm template renders with default (empty) customMetrics - helm template renders custom metrics when provided Reviewers: Subscribers: Tasks: Tags:
1 parent ba3351f commit 92961b8

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

charts/whatsapp-proxy-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type: application
1717
# This is the chart version. This version number should be incremented each time you make changes
1818
# to the chart and its templates, including the app version.
1919
# Versions are expected to follow Semantic Versioning (https://semver.org/)
20-
version: 1.3.6
20+
version: 1.3.7
2121

2222
# This is the version number of the application being deployed. This version number should be
2323
# incremented each time you make changes to the application. Versions are not expected to

charts/whatsapp-proxy-chart/templates/hpa.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ spec:
3333
type: Utilization
3434
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
3535
{{- end }}
36+
{{- with .Values.autoscaling.customMetrics }}
37+
{{- toYaml . | nindent 4 }}
38+
{{- end }}
3639
{{- end }}

charts/whatsapp-proxy-chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ autoscaling:
9696
maxReplicas: 100
9797
targetCPUUtilizationPercentage: 80
9898
# targetMemoryUtilizationPercentage: 80
99+
customMetrics: []
99100

100101
nodeSelector: {}
101102

0 commit comments

Comments
 (0)