Skip to content

Commit

Permalink
Update autoscaling API version
Browse files Browse the repository at this point in the history
Signed-off-by: João Francisco <40362916+jfrancisco0@users.noreply.github.com>
  • Loading branch information
jfrancisco0 committed Aug 7, 2023
1 parent a3ce5c4 commit d5f8847
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 d5f8847

Please sign in to comment.