Skip to content

Commit c6b5b39

Browse files
authored
Merge pull request #1721 from swimablefish/main
fix(helm): podinfo fails to create the hpa object
2 parents a6a7a20 + e99add4 commit c6b5b39

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

charts/podinfo/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
version: 6.1.3
2+
version: 6.1.4
33
appVersion: 6.1.3
44
name: podinfo
55
engine: gotpl

charts/podinfo/templates/hpa.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.hpa.cpu }}
23+
target:
24+
type: Utilization
25+
averageUtilization: {{ .Values.hpa.cpu }}
2426
{{- end }}
2527
{{- if .Values.hpa.memory }}
2628
- type: Resource
2729
resource:
2830
name: memory
29-
targetAverageValue: {{ .Values.hpa.memory }}
31+
target:
32+
type: AverageValue
33+
averageValue: {{ .Values.hpa.memory }}
3034
{{- end }}
3135
{{- end }}

0 commit comments

Comments
 (0)