Skip to content

Commit 9f37044

Browse files
[gofer]: update HPA spec to v2
1 parent edb67c8 commit 9f37044

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

charts/gofer/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ type: application
2121
# This is the chart version. This version number should be incremented each time you make changes
2222
# to the chart and its templates, including the app version.
2323
# Versions are expected to follow Semantic Versioning (https://semver.org/)
24-
version: 0.3.2
24+
version: 0.3.4
2525

2626
# This is the version number of the application being deployed. This version number should be
2727
# incremented each time you make changes to the application. Versions are not expected to
2828
# follow Semantic Versioning. They should reflect the version the application is using.
2929
# It is recommended to use it with quotes.
30-
appVersion: "0.44"
30+
appVersion: "0.48"

charts/gofer/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# gofer
22

3-
![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.44](https://img.shields.io/badge/AppVersion-0.44-informational?style=flat-square)
3+
![Version: 0.3.4](https://img.shields.io/badge/Version-0.3.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.48](https://img.shields.io/badge/AppVersion-0.48-informational?style=flat-square)
44

55
A Helm chart for deploying gofer to Kubernetes
66

charts/gofer/templates/hpa.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.autoscaling.enabled }}
2-
apiVersion: autoscaling/v2beta1
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ include "gofer.fullname" . }}
@@ -17,12 +17,16 @@ spec:
1717
- type: Resource
1818
resource:
1919
name: cpu
20-
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
20+
target:
21+
type: Utilization
22+
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
2123
{{- end }}
2224
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
2325
- type: Resource
2426
resource:
2527
name: memory
26-
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
28+
target:
29+
type: AverageValue
30+
averageValue: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
2731
{{- end }}
2832
{{- end }}

0 commit comments

Comments
 (0)