mirror of
https://github.com/bitnami/charts.git
synced 2026-03-12 14:57:18 +08:00
* [metrics-server] Fix wrong template helper usage * [metrics-server] Bump Chart version * [metrics-server] Using include instead of template directive
16 lines
591 B
YAML
16 lines
591 B
YAML
{{- if .Values.podDisruptionBudget.enabled -}}
|
|
apiVersion: policy/v1beta1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "common.names.fullname" . }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
spec:
|
|
{{- if .Values.podDisruptionBudget.minAvailable }}
|
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
|
{{- end }}
|
|
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
|
|
{{- end -}} |