diff --git a/templates/pdb.yaml b/templates/pdb.yaml index 6296ca3..31497a5 100644 --- a/templates/pdb.yaml +++ b/templates/pdb.yaml @@ -3,7 +3,7 @@ {{- range $serviceName, $serviceDefinition := $values.services }} {{- if eq $serviceDefinition.enabled true }} --- -{{- if semverCompare ">=1.21.0" ( trimPrefix "v" $.Capabilities.KubeVersion.Version ) }} +{{- if semverCompare ">=1.21.0-0" ( trimPrefix "v" $.Capabilities.KubeVersion.Version ) }} apiVersion: policy/v1 {{- else -}} apiVersion: policy/v1beta1