Skip to content

Commit

Permalink
Merge pull request #105 from cryptobioz/fix-pdb-semver
Browse files Browse the repository at this point in the history
Allow comparaison with pre-release
  • Loading branch information
sbrunner authored Mar 24, 2023
2 parents 81671b8 + 0e6a5cb commit e368e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e368e7f

Please sign in to comment.