Skip to content

Commit

Permalink
helm/hpa: Fix API version check, again
Browse files Browse the repository at this point in the history
  • Loading branch information
antti-mikael committed Nov 22, 2023
1 parent 1ffc558 commit 5526f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/templates/06-hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.hpa.enabled -}}
{{- if (.Capabilities.APIVersions.Has "autoscaling.apiserver.k8s.io/v2") }}
{{- if (.Capabilities.APIVersions.Has "autoscaling/v2") }}
apiVersion: autoscaling/v2
{{- else }}
apiVersion: autoscaling/v2beta2
Expand Down

0 comments on commit 5526f09

Please sign in to comment.