mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-28 14:41:02 +01:00
jsonnet: conditionally add PDB
This commit is contained in:
parent
60d5aa25fc
commit
30a41d18d8
@ -165,7 +165,7 @@ function(params) {
|
||||
},
|
||||
},
|
||||
|
||||
podDisruptionBudget: {
|
||||
[if (defaults + params).replicas > 1 then 'podDisruptionBudget']: {
|
||||
apiVersion: 'policy/v1beta1',
|
||||
kind: 'PodDisruptionBudget',
|
||||
metadata: {
|
||||
|
||||
@ -236,7 +236,7 @@ function(params) {
|
||||
items: [newSpecificRole(x) for x in p.config.namespaces],
|
||||
},
|
||||
|
||||
podDisruptionBudget: {
|
||||
[if (defaults + params).replicas > 1 then 'podDisruptionBudget']: {
|
||||
apiVersion: 'policy/v1beta1',
|
||||
kind: 'PodDisruptionBudget',
|
||||
metadata: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user