Skip to content

Commit

Permalink
Merge pull request #334 from rowanruseler/rr/policy-apiversion
Browse files Browse the repository at this point in the history
PodDisruptionBudget Policy apiVersion
  • Loading branch information
Rui Yang authored Jun 23, 2023
2 parents b371d83 + e1f7bd0 commit a3ce5c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/worker-policy.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if .Values.worker.enabled -}}
{{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: policy/v1
{{- else -}}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ template "concourse.worker.fullname" . }}
Expand Down

0 comments on commit a3ce5c4

Please sign in to comment.