Skip to content

Commit

Permalink
Merge pull request #337 from jfrancisco0/master
Browse files Browse the repository at this point in the history
Update autoscaling API version
  • Loading branch information
Rui Yang authored Aug 30, 2023
2 parents 4b2e8ae + d5f8847 commit 6ee720c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/worker-horizontal-pod-autoscaler.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{{- if .Values.concourse.worker.autoscaling }}
{{- if .Values.concourse.worker.autoscaling.maxReplicas }}
{{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: autoscaling/v2
{{- else -}}
apiVersion: autoscaling/v2beta2
{{- end }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "concourse.worker.fullname" . }}
Expand Down Expand Up @@ -29,4 +33,3 @@ spec:
name: {{ template "concourse.worker.fullname" . }}
{{- end }}
{{- end }}

0 comments on commit 6ee720c

Please sign in to comment.