Skip to content

Commit 4cc622c

Browse files
committed
fix: use pdb policy/v1 apiversion when possible
fix imgproxy#76
1 parent 9c6ae59 commit 4cc622c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imgproxy/templates/pod-disruption-budget.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{{- with .Values.resources.podDisruptionBudget -}}
22
{{- if .enabled }}
3+
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
4+
apiVersion: policy/v1
5+
{{- else}}
36
apiVersion: policy/v1beta1
7+
{{- end }}
48
kind: PodDisruptionBudget
59
metadata:
610
name: {{ template "imgproxy.fullname" $ }}-pdb

0 commit comments

Comments
 (0)