This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git


The following commit(s) were added to refs/heads/master by this push:
     new 1966092  fix: always use policy/v1 for PodDisruptionBudget templates 
(#703)
1966092 is described below

commit 1966092393ab5d8fdbdd431832fc464e66702e5d
Author: yusufdaud-anaplan <[email protected]>
AuthorDate: Tue Jul 7 11:33:48 2026 +0100

    fix: always use policy/v1 for PodDisruptionBudget templates (#703)
---
 charts/pulsar/templates/bookkeeper-pdb.yaml      | 5 -----
 charts/pulsar/templates/broker-pdb.yaml          | 5 -----
 charts/pulsar/templates/function-worker-pdb.yaml | 5 -----
 charts/pulsar/templates/proxy-pdb.yaml           | 5 -----
 charts/pulsar/templates/zookeeper-pdb.yaml       | 5 -----
 5 files changed, 25 deletions(-)

diff --git a/charts/pulsar/templates/bookkeeper-pdb.yaml 
b/charts/pulsar/templates/bookkeeper-pdb.yaml
index 409036d..69f7c6b 100644
--- a/charts/pulsar/templates/bookkeeper-pdb.yaml
+++ b/charts/pulsar/templates/bookkeeper-pdb.yaml
@@ -19,12 +19,7 @@
 
 {{- if and .Values.components.bookkeeper (not .Values.standalone.enabled) }}
 {{- if .Values.bookkeeper.pdb.usePolicy }}
-# pdb version detection
-{{- if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version }}
-apiVersion: policy/v1beta1
-{{- else }}
 apiVersion: policy/v1
-{{- end }}
 kind: PodDisruptionBudget
 metadata:
   name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
diff --git a/charts/pulsar/templates/broker-pdb.yaml 
b/charts/pulsar/templates/broker-pdb.yaml
index 9c36310..42023d4 100644
--- a/charts/pulsar/templates/broker-pdb.yaml
+++ b/charts/pulsar/templates/broker-pdb.yaml
@@ -19,12 +19,7 @@
 
 {{- if and .Values.components.broker (not .Values.standalone.enabled) }}
 {{- if .Values.broker.pdb.usePolicy }}
-# pdb version detection
-{{- if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version }}
-apiVersion: policy/v1beta1
-{{- else }}
 apiVersion: policy/v1
-{{- end }}
 kind: PodDisruptionBudget
 metadata:
   name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
diff --git a/charts/pulsar/templates/function-worker-pdb.yaml 
b/charts/pulsar/templates/function-worker-pdb.yaml
index 902a649..a879797 100644
--- a/charts/pulsar/templates/function-worker-pdb.yaml
+++ b/charts/pulsar/templates/function-worker-pdb.yaml
@@ -19,12 +19,7 @@
 
 {{- if and .Values.components.function_worker (not .Values.standalone.enabled) 
}}
 {{- if .Values.function_worker.pdb.usePolicy }}
-# pdb version detection
-{{- if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version }}
-apiVersion: policy/v1beta1
-{{- else }}
 apiVersion: policy/v1
-{{- end }}
 kind: PodDisruptionBudget
 metadata:
   name: "{{ template "pulsar.fullname" . }}-{{ 
.Values.function_worker.component }}"
diff --git a/charts/pulsar/templates/proxy-pdb.yaml 
b/charts/pulsar/templates/proxy-pdb.yaml
index 285d0ef..cdc6379 100644
--- a/charts/pulsar/templates/proxy-pdb.yaml
+++ b/charts/pulsar/templates/proxy-pdb.yaml
@@ -19,12 +19,7 @@
 
 {{- if .Values.components.proxy }}
 {{- if .Values.proxy.pdb.usePolicy }}
-# pdb version detection
-{{- if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version }}
-apiVersion: policy/v1beta1
-{{- else }}
 apiVersion: policy/v1
-{{- end }}
 kind: PodDisruptionBudget
 metadata:
   name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
diff --git a/charts/pulsar/templates/zookeeper-pdb.yaml 
b/charts/pulsar/templates/zookeeper-pdb.yaml
index 38cb52c..4b64ee6 100644
--- a/charts/pulsar/templates/zookeeper-pdb.yaml
+++ b/charts/pulsar/templates/zookeeper-pdb.yaml
@@ -20,12 +20,7 @@
 # deploy zookeeper only when `components.zookeeper` is true
 {{- if and .Values.components.zookeeper (not .Values.standalone.enabled) }}
 {{- if .Values.zookeeper.pdb.usePolicy }}
-# pdb version detection
-{{- if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version }}
-apiVersion: policy/v1beta1
-{{- else }}
 apiVersion: policy/v1
-{{- end }}
 kind: PodDisruptionBudget
 metadata:
   name: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}"

Reply via email to