Merge pull request #1721 from swimablefish/main

fix(helm): podinfo fails to create the hpa object
This commit is contained in:
Stefan Prodan
2024-11-25 14:51:22 +00:00
committed by GitHub
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
apiVersion: v1
version: 6.1.3
version: 6.1.4
appVersion: 6.1.3
name: podinfo
engine: gotpl
+6 -2
View File
@@ -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 }}