1 {{- if .Values.pdb.create }}
2 {{- if .Capabilities.APIVersions.Has "policy/v1" }}
5 apiVersion: policy/v1beta1
7 kind: PodDisruptionBudget
9 name: {{ template "influxdb.fullname" . }}
11 {{- include "influxdb.labels" . | nindent 4 }}
13 {{- if .Values.pdb.minAvailable }}
14 minAvailable: {{ .Values.pdb.minAvailable }}
16 {{- if .Values.pdb.maxUnavailable }}
17 maxUnavailable: {{ .Values.pdb.maxUnavailable }}
21 {{- include "influxdb.selectorLabels" . | nindent 6 }}