Update controller-poddisruptionbudget.yaml (#6734)

Logic was wrong. See additional check that is also part of the first OR.
This commit is contained in:
Maurice Faber 2021-05-30 22:16:25 +02:00 committed by GitHub
parent 43d33528e1
commit 7c6b694e72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{{- if or (and .Values.controller.autoscaling.enabled (gt (.Values.controller.autoscaling.minReplicas | int) 1)) (gt (.Values.controller.replicaCount | int) 1) -}}
{{- if or (and .Values.controller.autoscaling.enabled (gt (.Values.controller.autoscaling.minReplicas | int) 1)) (and (not .Values.controller.autoscaling.enabled) (gt (.Values.controller.replicaCount | int) 1)) }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata: