feat: bump resource api version (#7)

This commit is contained in:
Wei-An Yen
2022-06-10 14:56:01 +08:00
committed by GitHub
parent 7e70dd23e5
commit 5d28270192
5 changed files with 16 additions and 2 deletions

View File

@ -3,7 +3,11 @@
{{- define "common.pdb.tpl" -}}
{{- $top := first . }}
{{- $pdb := index . 1 }}
{{- if semverCompare ">=1.21.0" .Capabilities.KubeVersion.Version -}}
apiVersion: policy/v1
{{- else -}}
apiVersion: policy/v1beta1
{{- end -}}
kind: PodDisruptionBudget
metadata:
{{- include "common.metadata" (list $top) | nindent 2 }}