feat: bump resource api version (#7)
This commit is contained in:
@ -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 }}
|
||||
|
Reference in New Issue
Block a user