2020-11-24 14:44:57 +00:00
|
|
|
{{- if .Values.global.defaultPodDisruptionBudget.enabled }}
|
|
|
|
{{ $gateway := index .Values "gateways" "istio-ingressgateway" }}
|
|
|
|
apiVersion: policy/v1beta1
|
|
|
|
kind: PodDisruptionBudget
|
|
|
|
metadata:
|
2021-03-26 16:34:43 +00:00
|
|
|
name: {{ $gateway.name }}
|
2020-11-24 14:44:57 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ $gateway.labels | toYaml | trim | indent 4 }}
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
istio.io/rev: {{ .Values.revision | default "default" }}
|
|
|
|
install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }}
|
|
|
|
operator.istio.io/component: "IngressGateways"
|
|
|
|
spec:
|
|
|
|
minAvailable: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
{{ $gateway.labels | toYaml | trim | indent 6 }}
|
|
|
|
{{- end }}
|