Skip to content

Commit 4338879

Browse files
tomrk-esteam8Tomasz Rarok
and
Tomasz Rarok
authored
issue 134 fix hpa metrics schema (#136)
Co-authored-by: Tomasz Rarok <[email protected]>
1 parent 1e84d00 commit 4338879

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

stable/gcloud-sqlproxy/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ name: gcloud-sqlproxy
1919
sources:
2020
- https://github.com/rimusz/charts
2121
type: application
22-
version: 0.24.0
22+
version: 0.24.1

stable/gcloud-sqlproxy/templates/horizontalpodautoscaler.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@ spec:
2020
- type: Resource
2121
resource:
2222
name: cpu
23-
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
23+
target:
24+
type: Utilization
25+
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
2426
{{- end }}
2527
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
2628
- type: Resource
2729
resource:
2830
name: memory
29-
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
31+
target:
32+
type: Utilization
33+
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
3034
{{- end }}
3135
{{- end }}

0 commit comments

Comments
 (0)