ingress-nginx-helm/charts/ingress-nginx/tests/controller-prometheusrule_test.yaml
k8s-infra-cherrypick-robot b401ff3912
Chart: Add tests for PrometheusRule & ServiceMonitor. (#11889)
Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
2024-08-27 11:30:24 +02:00

17 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