Skip to content

Commit 6feeaa6

Browse files
committed
Update hpa
1 parent 070f137 commit 6feeaa6

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

charts/stable/common/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: common
33
description: Function library for k8s-at-home charts
44
type: library
5-
version: 4.5.6
5+
version: 4.5.7
66
kubeVersion: ">=1.16.0-0"
77
keywords:
88
- k8s-at-home

charts/stable/common/README_CHANGELOG.md.gotmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ All notable changes to this library Helm chart will be documented in this file.
1010
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1212

13+
### [4.5.7]
14+
15+
#### Changed
16+
- Update HPA to support new k8s versions
17+
1318
### [4.5.6]
1419

1520
#### Changed

charts/stable/common/templates/classes/_HorizontalPodAutoscaler.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using the common library.
77
{{- $hpaName := include "common.names.fullname" . -}}
88
{{- $targetName := include "common.names.fullname" . }}
99
---
10-
apiVersion: autoscaling/v2beta1
10+
apiVersion: autoscaling/v2
1111
kind: HorizontalPodAutoscaler
1212
metadata:
1313
name: {{ $hpaName }}
@@ -25,13 +25,13 @@ spec:
2525
- type: Resource
2626
resource:
2727
name: cpu
28-
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
28+
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
2929
{{- end }}
3030
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
3131
- type: Resource
3232
resource:
3333
name: memory
34-
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
34+
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
3535
{{- end }}
3636
{{- end -}}
3737
{{- end -}}

0 commit comments

Comments
 (0)