github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/kube-state-metrics/templates/pdb.yaml (about)

     1  {{- if .Values.podDisruptionBudget -}}
     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 "kube-state-metrics.fullname" . }}
    10    namespace: {{ template "kube-state-metrics.namespace" . }}
    11    labels:
    12      {{- include "kube-state-metrics.labels" . | indent 4 }}
    13  spec:
    14    selector:
    15      matchLabels:
    16        app.kubernetes.io/name: {{ template "kube-state-metrics.name" . }}
    17  {{ toYaml .Values.podDisruptionBudget | indent 2 }}
    18  {{- end -}}