Skip to content

Commit

Permalink
Merge pull request #2644 from zanac1986/tempo-distributed-fix-2564
Browse files Browse the repository at this point in the history
[tempo-distributed] fix pdb api policy/v1beta1 policy/v1 detection
  • Loading branch information
zanhsieh authored Sep 11, 2023
2 parents 4229c25 + 3673759 commit 9442988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/tempo-distributed/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Return if ingress supports pathType.
Return the appropriate apiVersion for PodDisruptionBudget.
*/}}
{{- define "tempo.pdb.apiVersion" -}}
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
{{- if and (.Capabilities.APIVersions.Has "policy/v1") (semverCompare ">=1.21-0" .Capabilities.KubeVersion.Version) -}}
{{- print "policy/v1" -}}
{{- else -}}
{{- print "policy/v1beta1" -}}
Expand Down

0 comments on commit 9442988

Please sign in to comment.