github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-adapter/templates/pdb.yaml (about) 1 {{- if .Values.podDisruptionBudget.enabled }} 2 apiVersion: {{ ternary "policy/v1" "policy/v1beta1" (semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version) }} 3 kind: PodDisruptionBudget 4 metadata: 5 name: {{ template "k8s-prometheus-adapter.fullname" . }} 6 namespace: {{ include "k8s-prometheus-adapter.namespace" . }} 7 {{- if .Values.customAnnotations }} 8 annotations: 9 {{- toYaml .Values.customAnnotations | nindent 4 }} 10 {{- end }} 11 labels: 12 {{- include "k8s-prometheus-adapter.labels" . | indent 4 }} 13 spec: 14 {{- if .Values.podDisruptionBudget.minAvailable }} 15 minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} 16 {{- end }} 17 {{- if .Values.podDisruptionBudget.maxUnavailable }} 18 maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} 19 {{- end }} 20 selector: 21 matchLabels: 22 {{- include "k8s-prometheus-adapter.selectorLabels" . | indent 6 }} 23 {{- end }}