Skip to content

Commit 3954447

Browse files
authored
Merge pull request #35 from mrrsm/task/hpa-version-fix
Fixes #34: Add check for autoscaling/v2 support before falling back to v2beta2
2 parents 27487db + 96fdf51 commit 3954447

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • charts/lightstepsatellite/templates

charts/lightstepsatellite/templates/hpa.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{{- if .Values.autoscaling.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
labels:

0 commit comments

Comments
 (0)