Skip to content

Commit

Permalink
issue 134 fix hpa metrics schema (#136)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Rarok <tomasz.rarok@kiwigrid.com>
  • Loading branch information
tomrk-esteam8 and Tomasz Rarok committed Mar 29, 2023
1 parent 1e84d00 commit 4338879
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ name: gcloud-sqlproxy
sources:
- https://github.com/rimusz/charts
type: application
version: 0.24.0
version: 0.24.1
8 changes: 6 additions & 2 deletions stable/gcloud-sqlproxy/templates/horizontalpodautoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

0 comments on commit 4338879

Please sign in to comment.