github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/helm/templates/poddisruptionbudget.yaml (about) 1 {{- if (gt (int .Values.replicaCount) 1) }} 2 {{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" }} 3 apiVersion: policy/v1 4 {{- else }} 5 apiVersion: policy/v1beta1 6 {{- end }} 7 kind: PodDisruptionBudget 8 metadata: 9 name: {{ template "kubeblocks.fullname" . }} 10 labels: {{ include "kubeblocks.labels" . | nindent 4 }} 11 spec: 12 {{- include "podDisruptionBudget.spec" . | indent 2 }} 13 selector: 14 matchLabels: 15 {{- include "kubeblocks.selectorLabels" . | nindent 6 }} 16 {{- end }}