github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/dex/templates/poddisruptionbudget.yaml (about)

     1  {{- if .Values.podDisruptionBudget.enabled }}
     2  {{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
     3  apiVersion: policy/v1
     4  {{- else -}}
     5  apiVersion: policy/v1beta1
     6  {{- end }}
     7  kind: PodDisruptionBudget
     8  metadata:
     9    name: {{ template "dex.fullname" . }}
    10    labels:
    11  {{ include "dex.labels" . | indent 4 }}
    12  spec:
    13    {{- with .Values.podDisruptionBudget.minAvailable }}
    14    minAvailable: {{ . }}
    15    {{- end }}
    16    {{- with .Values.podDisruptionBudget.maxUnavailable }}
    17    maxUnavailable: {{ . }}
    18    {{- end }}
    19    selector:
    20      matchLabels:
    21        {{- include "dex.selectorLabels" . | nindent 6 }}
    22  {{- end }}