mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> Co-authored-by: Nikola Jokic <jokicnikola07@gmail.com>
20 lines
700 B
YAML
20 lines
700 B
YAML
{{- if .Values.podDisruptionBudget.enabled }}
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
labels:
|
|
{{- include "actions-runner-controller.labels" . | nindent 4 }}
|
|
name: {{ include "actions-runner-controller.pdbName" . }}
|
|
namespace: {{ include "actions-runner-controller.namespace" . }}
|
|
spec:
|
|
{{- if .Values.podDisruptionBudget.minAvailable }}
|
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
|
{{- end }}
|
|
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "actions-runner-controller.selectorLabels" . | nindent 6 }}
|
|
{{- end -}}
|