18 lines
484 B
YAML
18 lines
484 B
YAML
![]() |
suite: Controller > PrometheusRule
|
||
|
templates:
|
||
|
- controller-prometheusrule.yaml
|
||
|
|
||
|
tests:
|
||
|
- it: should create a PrometheusRule if `controller.metrics.prometheusRule.enabled` is true
|
||
|
set:
|
||
|
controller.metrics.enabled: true
|
||
|
controller.metrics.prometheusRule.enabled: true
|
||
|
asserts:
|
||
|
- hasDocuments:
|
||
|
count: 1
|
||
|
- isKind:
|
||
|
of: PrometheusRule
|
||
|
- equal:
|
||
|
path: metadata.name
|
||
|
value: RELEASE-NAME-ingress-nginx-controller
|