Skip to content

Commit

Permalink
Merge pull request #1476 from bdols/pdb-versions
Browse files Browse the repository at this point in the history
Helm: Use PodDisruptionBudget API policy/v1 if available
  • Loading branch information
stefanprodan committed Aug 14, 2023
2 parents eee3607 + 0bdffc9 commit 45038cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/flagger/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if .Values.podDisruptionBudget.enabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ template "flagger.name" . }}
Expand Down
4 changes: 4 additions & 0 deletions charts/loadtester/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if .Values.podDisruptionBudget.enabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ include "loadtester.fullname" . }}
Expand Down

0 comments on commit 45038cb

Please sign in to comment.