Skip to content

Commit

Permalink
Merge pull request #1237 from MarceloFCandido/main
Browse files Browse the repository at this point in the history
Adding Elasticsearch addon support for K8s 1.25+
  • Loading branch information
rudimk authored Mar 27, 2024
2 parents c01dad7 + ce1c487 commit 5cd4534
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/elasticsearch/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
{{- if .Values.maxUnavailable }}
{{- if $.Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: "{{ template "elasticsearch.uname" . }}-pdb"
Expand Down

0 comments on commit 5cd4534

Please sign in to comment.