You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
689 B
16 lines
689 B
{{- if .Values.backgroundController.enabled -}}
|
|
{{- if or .Values.backgroundController.podDisruptionBudget.enabled (gt (int .Values.backgroundController.replicas) 1) -}}
|
|
apiVersion: {{ template "kyverno.pdb.apiVersion" . }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "kyverno.background-controller.name" . }}
|
|
namespace: {{ template "kyverno.namespace" . }}
|
|
labels:
|
|
{{- include "kyverno.background-controller.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- include "kyverno.pdb.spec" .Values.backgroundController.podDisruptionBudget | nindent 2 }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "kyverno.background-controller.matchLabels" . | nindent 6 }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|