Skip to content

Commit f10a403

Browse files
authored
fix: PodDisruptionBudget api version (#168)
1 parent 4de43e0 commit f10a403

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

charts/gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.2.10
17+
version: 0.2.11
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to

charts/gateway/templates/pdb.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
{{- if (and .Values.apisix.enabled .Values.apisix.podDisruptionBudget.enabled) }}
3+
{{ if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version -}}
34
apiVersion: policy/v1beta1
5+
{{- else -}}
6+
apiVersion: policy/v1
7+
{{- end }}
48
kind: PodDisruptionBudget
59
metadata:
610
name: {{ include "apisix.fullname" . }}

0 commit comments

Comments
 (0)