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

21 lines
540 B
YAML

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