Chart: Implement unhealthyPodEvictionPolicy. (#11992)

This commit is contained in:
chengjoey 2024-09-20 20:34:38 +08:00 committed by GitHub
parent 43a7d8d5fe
commit 17209eb3a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 41 additions and 0 deletions

View file

@ -87,3 +87,16 @@ tests:
- equal:
path: spec.maxUnavailable
value: 1
- it: should create a PodDisruptionBudget with `unhealthyPodEvictionPolicy` if `controller.unhealthyPodEvictionPolicy` is set
set:
controller.replicaCount: 2
controller.unhealthyPodEvictionPolicy: IfHealthyBudget
asserts:
- hasDocuments:
count: 1
- isKind:
of: PodDisruptionBudget
- equal:
path: spec.unhealthyPodEvictionPolicy
value: IfHealthyBudget

View file

@ -63,3 +63,17 @@ tests:
- equal:
path: spec.maxUnavailable
value: 1
- it: should create a PodDisruptionBudget with `unhealthyPodEvictionPolicy` if `defaultBackend.unhealthyPodEvictionPolicy` is set
set:
defaultBackend.enabled: true
defaultBackend.replicaCount: 2
defaultBackend.unhealthyPodEvictionPolicy: IfHealthyBudget
asserts:
- hasDocuments:
count: 1
- isKind:
of: PodDisruptionBudget
- equal:
path: spec.unhealthyPodEvictionPolicy
value: IfHealthyBudget