Skip to content

Commit

Permalink
fix(helm): podinfo fails to create the hpa object
Browse files Browse the repository at this point in the history
  • Loading branch information
swimablefish committed Nov 11, 2024
1 parent a159421 commit 6f84741
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/podinfo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 6.1.3
version: 6.1.4
appVersion: 6.1.3
name: podinfo
engine: gotpl
Expand Down
8 changes: 6 additions & 2 deletions charts/podinfo/templates/hpa.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.hpa.cpu }}
target:
type: Utilization
averageUtilization: {{ .Values.hpa.cpu }}
{{- end }}
{{- if .Values.hpa.memory }}
- type: Resource
resource:
name: memory
targetAverageValue: {{ .Values.hpa.memory }}
target:
type: AverageValue
averageValue: {{ .Values.hpa.memory }}
{{- end }}
{{- end }}

0 comments on commit 6f84741

Please sign in to comment.