Merge pull request #1036 from paulfantom/better_pdb

jsonnet: conditionally add PDB
This commit is contained in:
Frederic Branczyk 2021-03-16 08:25:13 +01:00 committed by GitHub
commit e4b58eaa5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ function(params) {
},
},
podDisruptionBudget: {
[if (defaults + params).replicas > 1 then 'podDisruptionBudget']: {
apiVersion: 'policy/v1beta1',
kind: 'PodDisruptionBudget',
metadata: {

View File

@ -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: {