Skip to content

Commit 5bbeb61

Browse files
committed
add if-else flow
1 parent 256dd57 commit 5bbeb61

File tree

1 file changed

+4
-0
lines changed
  • helm/aws-load-balancer-controller/templates

1 file changed

+4
-0
lines changed

helm/aws-load-balancer-controller/templates/pdb.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{{- if and .Values.podDisruptionBudget (gt (int .Values.replicaCount) 1) }}
2+
{{- if .Capabilities.APIVersions.Has "policy/v1" }}
23
apiVersion: policy/v1
4+
{{- else }}
5+
apiVersion: policy/v1beta1
6+
{{- end }}
37
kind: PodDisruptionBudget
48
metadata:
59
name: {{ include "aws-load-balancer-controller.fullname" . }}

0 commit comments

Comments
 (0)