Chart: Test controller.minAvailable
& controller.maxUnavailable
. (#12000)
This commit is contained in:
parent
435d5365b4
commit
b2bc9618d3
1 changed files with 16 additions and 0 deletions
|
@ -71,3 +71,19 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 0
|
count: 0
|
||||||
|
|
||||||
|
- it: should create a PodDisruptionBudget without `minAvailable` and with `maxUnavailable` if `controller.minAvailable` and `controller.maxUnavailable` are set
|
||||||
|
set:
|
||||||
|
controller.replicaCount: 2
|
||||||
|
controller.minAvailable: 1
|
||||||
|
controller.maxUnavailable: 1
|
||||||
|
asserts:
|
||||||
|
- hasDocuments:
|
||||||
|
count: 1
|
||||||
|
- isKind:
|
||||||
|
of: PodDisruptionBudget
|
||||||
|
- notExists:
|
||||||
|
path: spec.minAvailable
|
||||||
|
- equal:
|
||||||
|
path: spec.maxUnavailable
|
||||||
|
value: 1
|
||||||
|
|
Loading…
Reference in a new issue