rancher-partner-charts/charts/f5/nginx-ingress/templates/controller-pdb.yaml

24 lines
854 B
YAML

{{- if .Values.controller.podDisruptionBudget.enabled -}}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "nginx-ingress.controller.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "nginx-ingress.labels" . | nindent 4 }}
{{- if .Values.controller.podDisruptionBudget.annotations }}
annotations:
{{ toYaml .Values.controller.podDisruptionBudget.annotations | indent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "nginx-ingress.selectorLabels" . | nindent 6 }}
{{- if .Values.controller.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.controller.podDisruptionBudget.minAvailable }}
{{- end }}
{{- if .Values.controller.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ .Values.controller.podDisruptionBudget.maxUnavailable }}
{{- end }}
{{- end }}