Skip to content

Commit e0bf41b

Browse files
authored
fix: use kubeversion to determine PDB apiVersion
1 parent 80f83b6 commit e0bf41b

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

traefik/templates/poddisruptionbudget.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{{- if .Values.podDisruptionBudget.enabled -}}
2-
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" }}
32
apiVersion: policy/v1
4-
{{- else }}
5-
apiVersion: policy/v1beta1
6-
{{- end }}
73
kind: PodDisruptionBudget
84
metadata:
95
name: {{ template "traefik.fullname" . }}

0 commit comments

Comments
 (0)