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
668 B
16 lines
668 B
{{- if .Values.cleanupController.enabled -}}
|
|
{{- if or .Values.cleanupController.podDisruptionBudget.enabled (gt (int .Values.cleanupController.replicas) 1) -}}
|
|
apiVersion: {{ template "kyverno.pdb.apiVersion" . }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "kyverno.cleanup-controller.name" . }}
|
|
namespace: {{ template "kyverno.namespace" . }}
|
|
labels:
|
|
{{- include "kyverno.cleanup-controller.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- include "kyverno.pdb.spec" .Values.cleanupController.podDisruptionBudget | nindent 2 }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "kyverno.cleanup-controller.matchLabels" . | nindent 6 }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|