rancher-partner-charts/charts/fairwinds/polaris/5.17.0/templates/webhook.pdb.yaml

21 lines
528 B
YAML

{{- if .Values.webhook.pdb }}
{{- if and .Values.webhook.enable .Values.webhook.pdb.enable -}}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "polaris.fullname" . }}-webhook
{{- if .Values.templateOnly }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
{{- include "polaris.labels" . | nindent 4 }}
component: webhook
spec:
maxUnavailable: 1
selector:
matchLabels:
{{- include "polaris.selectors" . | nindent 6 }}
component: webhook
{{- end }}
{{- end }}