Sync up to the latest it/dep commit.
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / kong / templates / controller-pdb.yaml
1 {{- if and .Values.ingressController.enabled .Values.ingressController.podDisruptionBudget.enabled }}
2 apiVersion: policy/v1beta1
3 kind: PodDisruptionBudget
4 metadata:
5   name: "{{ template "kong.fullname" . }}-controller"
6   labels:
7     app: "{{ template "kong.name" . }}"
8 spec:
9   {{- if .Values.ingressController.podDisruptionBudget.minAvailable }}
10   minAvailable: {{ .Values.ingressController.podDisruptionBudget.minAvailable }}
11   {{- end  }}
12   {{- if .Values.ingressController.podDisruptionBudget.maxUnavailable }}
13   maxUnavailable: {{ .Values.ingressController.podDisruptionBudget.maxUnavailable }}
14   {{- end  }}
15   selector:
16     matchLabels:
17       app: {{ template "kong.name" . }}
18       release: {{ .Release.Name }}
19       component: controller
20 {{- end }}