Files
devops-infra-helm-charts-gcp/helm-templates/dind/templates/pdb.yaml
T
2026-08-26 03:39:42 +05:30

27 lines
715 B
YAML

{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Values.fullNameOverride }}
namespace: {{ .Release.Namespace }}
labels:
{{- with .Values.labels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- with .Values.podDisruptionBudget.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
{{- end }}
{{- if .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
{{- end }}
selector:
{{- with .Values.labels }}
matchLabels:
{{ toYaml . | indent 6 }}
{{- end }}
{{- end }}