Bump PDB API version to v1 (#7421)
* update pdb to v1 Signed-off-by: yuswift <yuswift2018@gmail.com> * validate the version in PDB Signed-off-by: yuswift <yuswift2018@gmail.com>
This commit is contained in:
parent
eb5c38d636
commit
b1a71adb74
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{{- if or (and .Values.controller.autoscaling.enabled (gt (.Values.controller.autoscaling.minReplicas | int) 1)) (and (not .Values.controller.autoscaling.enabled) (gt (.Values.controller.replicaCount | int) 1)) }}
|
||||
apiVersion: policy/v1beta1
|
||||
apiVersion: {{ ternary "policy/v1" "policy/v1beta1" (semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version) }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{- if or (gt (.Values.defaultBackend.replicaCount | int) 1) (gt (.Values.defaultBackend.autoscaling.minReplicas | int) 1) }}
|
||||
apiVersion: policy/v1beta1
|
||||
apiVersion: {{ ternary "policy/v1" "policy/v1beta1" (semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version) }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
labels:
|
||||
|
|
Loading…
Reference in a new issue