Skip to content

Commit 75f9a4a

Browse files
Devon Mizellemrueg
authored andcommitted
Bump HPA to autoscaling/v2beta2
This commit bumps the apiVersion of HorizontalPodAutoscaler to autoscaling/v2beta2 autoscaling/v2beta1 has been deprecated since 1.12 I believe, with it disappearing in 1.20. Additionally, v2beta2 adds `spec.behavior`, so allowing people to template it if needed. Signed-off-by: Devon Mizelle <[email protected]>
1 parent 82b6f17 commit 75f9a4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stable/coredns/templates/hpa.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if and (.Values.hpa.enabled) (not .Values.autoscaler.enabled) }}
22
---
3-
apiVersion: autoscaling/v2beta1
3+
apiVersion: autoscaling/v2beta2
44
kind: HorizontalPodAutoscaler
55
metadata:
66
name: {{ template "coredns.fullname" . }}
@@ -26,4 +26,8 @@ spec:
2626
maxReplicas: {{ .Values.hpa.maxReplicas }}
2727
metrics:
2828
{{ toYaml .Values.hpa.metrics | indent 4 }}
29+
{{- if .Values.hpa.behavior }}
30+
behavior:
31+
{{ toYaml .Values.hpa.behavior | indent 4 }}
32+
{{- end }}
2933
{{- end }}

0 commit comments

Comments
 (0)