File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
- {{- if .Values.clusterChecksRunner.createPodDisruptionBudget -}}
1
+ {{- if .Values.clusterChecksRunner.createPodDisruptionBudget .Values.clusterChecksRunner.pdb.enable -}}
2
2
apiVersion : {{ template "policy.poddisruptionbudget.apiVersion" . }}
3
3
kind : PodDisruptionBudget
4
4
metadata :
@@ -7,7 +7,7 @@ metadata:
7
7
labels :
8
8
{{ include "datadog.labels" . | indent 4 }}
9
9
spec :
10
- maxUnavailable : 1
10
+ maxUnavailable : {{ .Values.clusterChecksRunner.pdb.minAvailable | default 1 }}
11
11
selector :
12
12
matchLabels :
13
13
app : {{ template "datadog.fullname" . }}-clusterchecks
Original file line number Diff line number Diff line change 1
- {{- if .Values.clusterAgent.createPodDisruptionBudget -}}
1
+ {{- if or .Values.clusterAgent.createPodDisruptionBudget .Values.clusterAgent.pdb.enablee -}}
2
2
apiVersion : {{ template "policy.poddisruptionbudget.apiVersion" . }}
3
3
kind : PodDisruptionBudget
4
4
metadata :
@@ -7,7 +7,7 @@ metadata:
7
7
labels :
8
8
{{ include "datadog.labels" . | indent 4 }}
9
9
spec :
10
- minAvailable : 1
10
+ minAvailable : {{ .Values.clusterAgent.pdb.minAvailable | default 1 }}
11
11
selector :
12
12
matchLabels :
13
13
app : {{ template "datadog.fullname" . }}-cluster-agent
Original file line number Diff line number Diff line change @@ -1656,7 +1656,13 @@ clusterAgent:
1656
1656
datadog_cluster_yaml : {}
1657
1657
1658
1658
# clusterAgent.createPodDisruptionBudget -- Create pod disruption budget for Cluster Agent deployments
1659
- createPodDisruptionBudget : false
1659
+ createPodDisruptionBudget : false # To be deprecated
1660
+ # Define PodDisruptionBudget for Cluster Agent deployments
1661
+ pdb :
1662
+ # clusterAgent.pdb.create -- Create pod disruption budget for Cluster Agent deployments
1663
+ create : false
1664
+ # clusterAgent.pdb.minAvailable -- PDB minAvailable to be available at all times
1665
+ minAvailable : 1
1660
1666
1661
1667
networkPolicy :
1662
1668
# clusterAgent.networkPolicy.create -- If true, create a NetworkPolicy for the cluster agent.
@@ -2395,7 +2401,13 @@ clusterChecksRunner:
2395
2401
# - name: "<REG_SECRET>"
2396
2402
2397
2403
# clusterChecksRunner.createPodDisruptionBudget -- Create the pod disruption budget to apply to the cluster checks agents
2398
- createPodDisruptionBudget : false
2404
+ createPodDisruptionBudget : false # To be deprecated
2405
+ # Define PodDisruptionBudget for cluster checks agents
2406
+ pdb :
2407
+ # clusterChecksRunner.pdb.create -- Create the pod disruption budget to apply to the cluster checks agents
2408
+ create : false
2409
+ # clusterChecksRunner.pdb.minAvailable -- PDB minAvailable to be available at all times
2410
+ minAvailable : 1
2399
2411
2400
2412
# Provide Cluster Checks Deployment pods RBAC configuration
2401
2413
rbac :
You can’t perform that action at this time.
0 commit comments