Skip to content

Commit

Permalink
use autoscaling/v2 if possible
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Bulisch <[email protected]>
  • Loading branch information
pulish authored and mrueg committed Mar 22, 2023
1 parent 8a788f4 commit fff6023
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/coredns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: coredns
version: 1.19.7
version: 1.19.8
appVersion: 1.9.4
home: https://coredns.io
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
Expand Down
4 changes: 4 additions & 0 deletions charts/coredns/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{{- if and (.Values.hpa.enabled) (not .Values.autoscaler.enabled) }}
---
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
apiVersion: autoscaling/v2
{{- else }}
apiVersion: autoscaling/v2beta2
{{- end }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "coredns.fullname" . }}
Expand Down

0 comments on commit fff6023

Please sign in to comment.