Skip to content

Commit

Permalink
Merge pull request #74 from Firgeis/master
Browse files Browse the repository at this point in the history
Support k8s version 1.20 and below to use PodDisruptionBudget policy/v1beta1
  • Loading branch information
181192 authored Aug 17, 2022
2 parents 4ea8654 + 6268caf commit 6bfc857
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stable/akv2k8s/templates/env-injector-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if and .Values.env_injector.enabled .Values.env_injector.podDisruptionBudget.enabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1beta1" }}
apiVersion: policy/v1beta1
{{- else }}
apiVersion: policy/v1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ template "akv2k8s.envinjector.fullname" . }}
Expand Down

0 comments on commit 6bfc857

Please sign in to comment.