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 bfc9e5acef
commit 2914a7ae49

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: