Skip to content

Commit

Permalink
update _helper.tpl
Browse files Browse the repository at this point in the history
Signed-off-by: zanac1986 <[email protected]>
  • Loading branch information
zanac1986 committed Sep 9, 2023
1 parent 141f22e commit 3673759
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/tempo-distributed/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ Return if ingress supports pathType.
Return the appropriate apiVersion for PodDisruptionBudget.
*/}}
{{- define "tempo.pdb.apiVersion" -}}
{{- print "policy/v1" -}}
{{- if and (.Capabilities.APIVersions.Has "policy/v1") (semverCompare ">=1.21-0" .Capabilities.KubeVersion.Version) -}}
{{- print "policy/v1" -}}
{{- else -}}
{{- print "policy/v1beta1" -}}
{{- end -}}
{{- end -}}

{{/*
Expand Down

0 comments on commit 3673759

Please sign in to comment.