Revolyssup commented on code in PR #713:
URL: https://github.com/apache/apisix-helm-chart/pull/713#discussion_r1531630310
##########
charts/apisix/templates/pdb.yaml:
##########
@@ -15,8 +15,11 @@
# limitations under the License.
{{- if (.Values.podDisruptionBudget.enabled) }}
+{{ if semverCompare "<1.21-0" .Capabilities.KubeVersion.Version -}}
apiVersion: policy/v1beta1
+{{- else -}}
kind: PodDisruptionBudget
+{{- end }}
Review Comment:
Did you mean to specify apiVersion policy/v1 here? I dont think the logic is
quite right.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]