-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from kuskoman/allow-to-specify-svc-annotations
Allow to specify custom annotations for the service helm template
- Loading branch information
Showing
4 changed files
with
31 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
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