16 lines
486 B
YAML
16 lines
486 B
YAML
|
{{- if gt .Values.replicaCount 1.0 -}}
|
||
|
apiVersion: {{ template "policy.poddisruptionbudget.apiVersion" . }}
|
||
|
kind: PodDisruptionBudget
|
||
|
metadata:
|
||
|
name: {{ include "datadog-operator.fullname" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
{{ include "datadog-operator.labels" . | indent 4 }}
|
||
|
spec:
|
||
|
minAvailable: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: {{ include "datadog-operator.name" . }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
{{- end -}}
|