-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service annotations to the helm chart
Signed-off-by: Jakub Surdej <jakub.sudej@shift4.com>
- Loading branch information
Jakub Surdej
committed
Jun 28, 2024
1 parent
fcbbb29
commit d934789
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json | ||
--- | ||
suite: service tests | ||
templates: | ||
- service.yaml | ||
tests: | ||
- it: render default service | ||
asserts: | ||
- isKind: | ||
of: Service | ||
- equal: | ||
path: metadata.name | ||
value: RELEASE-NAME-prometheus-rds-exporter-chart | ||
- it: render service with annotations | ||
values: | ||
- ./values/with_service.yaml | ||
asserts: | ||
- equal: | ||
path: metadata.annotations | ||
value: | ||
"prometheus.io/scrape": "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
service: | ||
annotations: | ||
"prometheus.io/scrape": "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters