Chart: Add controller.metrics.service.enabled. (#12056)
This commit is contained in:
parent
03affadd36
commit
f3bfa56c61
4 changed files with 24 additions and 3 deletions
|
|
@ -3,16 +3,34 @@ templates:
|
|||
- controller-service-metrics.yaml
|
||||
|
||||
tests:
|
||||
- it: should not create a metrics Service if `controller.metrics.enabled` is false
|
||||
- it: should not create a metrics Service if `controller.metrics.enabled` is false and `controller.metrics.service.enabled` is false
|
||||
set:
|
||||
controller.metrics.enabled: false
|
||||
controller.metrics.service.enabled: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
- it: should create a metrics Service if `controller.metrics.enabled` is true
|
||||
- it: should not create a metrics Service if `controller.metrics.enabled` is false and `controller.metrics.service.enabled` is true
|
||||
set:
|
||||
controller.metrics.enabled: false
|
||||
controller.metrics.service.enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
- it: should not create a metrics Service if `controller.metrics.enabled` is true and `controller.metrics.service.enabled` is false
|
||||
set:
|
||||
controller.metrics.enabled: true
|
||||
controller.metrics.service.enabled: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
- it: should create a metrics Service if `controller.metrics.enabled` is true and `controller.metrics.service.enabled` is true
|
||||
set:
|
||||
controller.metrics.enabled: true
|
||||
controller.metrics.service.enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue