Skip to content

Commit

Permalink
Merge pull request #26 from vector-im/sort_hpa
Browse files Browse the repository at this point in the history
Sort HPA
  • Loading branch information
laurencegill authored Sep 26, 2023
2 parents f0775ed + 6ceaf94 commit f910b74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/element-call/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application

# This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: "0.1.5"
version: "0.1.6"

# This version number should be incremented each time you make changes
# to the application.
Expand Down
12 changes: 6 additions & 6 deletions charts/element-call/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ spec:
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- end }}

0 comments on commit f910b74

Please sign in to comment.