17 lines
458 B
YAML
17 lines
458 B
YAML
|
{{- if .Values.podDisruptionBudget -}}
|
||
|
{{- if .Capabilities.APIVersions.Has "policy/v1" }}
|
||
|
apiVersion: policy/v1
|
||
|
{{- else }}
|
||
|
apiVersion: policy/v1beta1
|
||
|
{{- end }}
|
||
|
kind: PodDisruptionBudget
|
||
|
metadata:
|
||
|
name: {{ include "gitea.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "gitea.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
{{- include "gitea.selectorLabels" . | nindent 6 }}
|
||
|
{{- toYaml .Values.podDisruptionBudget | nindent 2 }}
|
||
|
{{- end -}}
|