Skip to content
Snippets Groups Projects
Unverified Commit 30a41d18 authored by paulfantom's avatar paulfantom
Browse files

jsonnet: conditionally add PDB

parent 60d5aa25
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ function(params) { ...@@ -165,7 +165,7 @@ function(params) {
}, },
}, },
podDisruptionBudget: { [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: {
apiVersion: 'policy/v1beta1', apiVersion: 'policy/v1beta1',
kind: 'PodDisruptionBudget', kind: 'PodDisruptionBudget',
metadata: { metadata: {
......
...@@ -236,7 +236,7 @@ function(params) { ...@@ -236,7 +236,7 @@ function(params) {
items: [newSpecificRole(x) for x in p.config.namespaces], items: [newSpecificRole(x) for x in p.config.namespaces],
}, },
podDisruptionBudget: { [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: {
apiVersion: 'policy/v1beta1', apiVersion: 'policy/v1beta1',
kind: 'PodDisruptionBudget', kind: 'PodDisruptionBudget',
metadata: { metadata: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment