Skip to content

Commit fff6023

Browse files
pulishmrueg
authored andcommitted
use autoscaling/v2 if possible
Signed-off-by: Peter Bulisch <[email protected]>
1 parent 8a788f4 commit fff6023

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

charts/coredns/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: coredns
3-
version: 1.19.7
3+
version: 1.19.8
44
appVersion: 1.9.4
55
home: https://coredns.io
66
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png

charts/coredns/templates/hpa.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{{- if and (.Values.hpa.enabled) (not .Values.autoscaler.enabled) }}
22
---
3+
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
4+
apiVersion: autoscaling/v2
5+
{{- else }}
36
apiVersion: autoscaling/v2beta2
7+
{{- end }}
48
kind: HorizontalPodAutoscaler
59
metadata:
610
name: {{ template "coredns.fullname" . }}

0 commit comments

Comments
 (0)