Chart: Add controller.metrics.prometheusRule.annotations. (#11849)

This commit is contained in:
Adrian Berger 2024-08-27 01:35:17 +02:00 committed by GitHub
parent 5d457c7daa
commit 3cde7770dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 0 deletions

View file

@ -15,3 +15,15 @@ tests:
- equal:
path: metadata.name
value: RELEASE-NAME-ingress-nginx-controller
- it: should create a PrometheusRule with annotations if `controller.metrics.prometheusRule.annotations` is set
set:
controller.metrics.enabled: true
controller.metrics.prometheusRule.enabled: true
controller.metrics.prometheusRule.annotations:
my-little-annotation: test-value
asserts:
- equal:
path: metadata.annotations
value:
my-little-annotation: test-value