Chart: Test controller.minAvailable & controller.maxUnavailable. (#12000)

This commit is contained in:
Marco Ebert 2024-09-20 14:19:54 +02:00 committed by GitHub
parent 435d5365b4
commit b2bc9618d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,3 +71,19 @@ tests:
asserts:
- hasDocuments:
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