Skip to content

Commit 96fdf51

Browse files
committed
Fixes #34: Add check for autoscaling/v2 support before falling back to v2beta2
1 parent 27487db commit 96fdf51

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)