Chart: Add tests for PrometheusRule & ServiceMonitor. (#11883)

This commit is contained in:
Marco Ebert 2024-08-27 00:04:17 +02:00 committed by GitHub
parent d4c49112a4
commit 5d457c7daa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,17 @@
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