Skip to content

Commit 2e601d8

Browse files
authored
Merge pull request #33 from mrrsm/task/support-newer-k8s
Fixes #32: Add check for policy/v1 support before falling back to v1beta1
2 parents 3954447 + 0a31c34 commit 2e601d8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • charts/lightstepsatellite/templates

charts/lightstepsatellite/templates/pdb.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# policy/v1beta1 support ends in 1.25, but only starts in 1.21.
1+
{{- if .Capabilities.APIVersions.Has "policy/v1" }}
2+
apiVersion: policy/v1
3+
{{- else }}
24
apiVersion: policy/v1beta1
5+
{{- end }}
36
kind: PodDisruptionBudget
47
metadata:
58
name: {{ include "lightstep.fullname" . }}-pdb

0 commit comments

Comments
 (0)