diff --git a/charts/flagger/templates/pdb.yaml b/charts/flagger/templates/pdb.yaml index 964919bd9..91d76782b 100644 --- a/charts/flagger/templates/pdb.yaml +++ b/charts/flagger/templates/pdb.yaml @@ -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 diff --git a/charts/loadtester/templates/pdb.yaml b/charts/loadtester/templates/pdb.yaml index edd28eac8..493fde8f5 100644 --- a/charts/loadtester/templates/pdb.yaml +++ b/charts/loadtester/templates/pdb.yaml @@ -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