Skip to content

Commit

Permalink
[FIX] Add PDB support to latest kubernetes versions (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenciso authored Jun 7, 2024
1 parent af32767 commit d5a7358
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/apisix/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
# limitations under the License.

{{- if (.Values.podDisruptionBudget.enabled) }}
{{ if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version -}}
apiVersion: policy/v1beta1
{{- else -}}
apiVersion: policy/v1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ include "apisix.fullname" . }}
Expand Down

0 comments on commit d5a7358

Please sign in to comment.