Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
feat: upgrade PodDisruptionBudget apiVersion to v1 and keep backward …
Browse files Browse the repository at this point in the history
…compatibility
  • Loading branch information
etiennetremel committed Dec 29, 2021
1 parent 31ea1dd commit fdfe3a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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" }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: "{{ template "elasticsearch.uname" . }}-pdb"
Expand Down
4 changes: 4 additions & 0 deletions logstash/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" }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: "{{ template "logstash.fullname" . }}-pdb"
Expand Down

0 comments on commit fdfe3a1

Please sign in to comment.