mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
19 lines
673 B
YAML
19 lines
673 B
YAML
|
|
{{- if and $.Values.podDisruptionBudget.enabled (gt (int $.Values.replicaCount) 1) }}
|
||
|
|
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||
|
|
kind: PodDisruptionBudget
|
||
|
|
metadata:
|
||
|
|
name: {{ include "sourcebot.fullname" $ }}
|
||
|
|
labels:
|
||
|
|
{{- include "sourcebot.labels" $ | nindent 4 }}
|
||
|
|
spec:
|
||
|
|
{{- if $.Values.podDisruptionBudget.minAvailable }}
|
||
|
|
minAvailable: {{ $.Values.podDisruptionBudget.minAvailable }}
|
||
|
|
{{- end }}
|
||
|
|
{{- if $.Values.podDisruptionBudget.maxUnavailable }}
|
||
|
|
maxUnavailable: {{ $.Values.podDisruptionBudget.maxUnavailable }}
|
||
|
|
{{- end }}
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
{{- include "sourcebot.selectorLabels" $ | nindent 6 }}
|
||
|
|
{{- end }}
|