Skip to content

Commit

Permalink
Merge pull request #1511 from chrisminton/pdb/fix
Browse files Browse the repository at this point in the history
fix(pdb): use the full capabilities comparison for PDBs
  • Loading branch information
stefanprodan authored Feb 7, 2024
2 parents dd89cd5 + 68d306c commit 2c3259b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/flagger/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.podDisruptionBudget.enabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
Expand Down
2 changes: 1 addition & 1 deletion charts/loadtester/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.podDisruptionBudget.enabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
Expand Down

0 comments on commit 2c3259b

Please sign in to comment.