mirror of
https://github.com/truenas/charts.git
synced 2026-05-16 14:12:59 +08:00
common: scale down workloads based on middleware provided metadata
This commit is contained in:
committed by
Stavros Kois
parent
aa295ecea1
commit
f004903659
@@ -94,3 +94,43 @@ tests:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: 0
|
||||
|
||||
- it: should set replicas to 0 on ixChartContext - isStopped (true)
|
||||
set:
|
||||
global:
|
||||
ixChartContext:
|
||||
storageClassName: some-storage-class
|
||||
isStopped: true
|
||||
workload:
|
||||
workload-name:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: Deployment
|
||||
replicas: 2
|
||||
podSpec: {}
|
||||
asserts:
|
||||
- documentIndex: *deploymentDoc
|
||||
isSubset:
|
||||
path: spec
|
||||
content:
|
||||
replicas: 0
|
||||
|
||||
- it: should not set replicas to 0 on ixChartContext - isStopped (false)
|
||||
set:
|
||||
global:
|
||||
ixChartContext:
|
||||
storageClassName: some-storage-class
|
||||
isStopped: false
|
||||
workload:
|
||||
workload-name:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: Deployment
|
||||
replicas: 2
|
||||
podSpec: {}
|
||||
asserts:
|
||||
- documentIndex: *deploymentDoc
|
||||
isSubset:
|
||||
path: spec
|
||||
content:
|
||||
replicas: 2
|
||||
|
||||
Reference in New Issue
Block a user