Skip to content

Commit 6bfc857

Browse files
authored
Merge pull request #74 from Firgeis/master
Support k8s version 1.20 and below to use PodDisruptionBudget policy/v1beta1
2 parents 4ea8654 + 6268caf commit 6bfc857

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stable/akv2k8s/templates/env-injector-pdb.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{{- if and .Values.env_injector.enabled .Values.env_injector.podDisruptionBudget.enabled }}
2+
{{- if .Capabilities.APIVersions.Has "policy/v1beta1" }}
3+
apiVersion: policy/v1beta1
4+
{{- else }}
25
apiVersion: policy/v1
6+
{{- end }}
37
kind: PodDisruptionBudget
48
metadata:
59
name: {{ template "akv2k8s.envinjector.fullname" . }}

0 commit comments

Comments
 (0)