We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af32767 commit d5a7358Copy full SHA for d5a7358
1 file changed
charts/apisix/templates/pdb.yaml
@@ -15,7 +15,11 @@
15
# limitations under the License.
16
17
{{- if (.Values.podDisruptionBudget.enabled) }}
18
+{{ if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version -}}
19
apiVersion: policy/v1beta1
20
+{{- else -}}
21
+apiVersion: policy/v1
22
+{{- end }}
23
kind: PodDisruptionBudget
24
metadata:
25
name: {{ include "apisix.fullname" . }}
0 commit comments