We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ea8654 + 6268caf commit 6bfc857Copy full SHA for 6bfc857
stable/akv2k8s/templates/env-injector-pdb.yaml
@@ -1,5 +1,9 @@
1
{{- if and .Values.env_injector.enabled .Values.env_injector.podDisruptionBudget.enabled }}
2
+{{- if .Capabilities.APIVersions.Has "policy/v1beta1" }}
3
+apiVersion: policy/v1beta1
4
+{{- else }}
5
apiVersion: policy/v1
6
+{{- end }}
7
kind: PodDisruptionBudget
8
metadata:
9
name: {{ template "akv2k8s.envinjector.fullname" . }}
0 commit comments