-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPSEXP-2205: make service templating consistent (#79)
- Loading branch information
Showing
5 changed files
with
107 additions
and
7 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
1 change: 0 additions & 1 deletion
1
charts/alfresco-transform-service/templates/svc-imagemagick.yaml
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
102 changes: 102 additions & 0 deletions
102
charts/alfresco-transform-service/tests/services_test.yaml
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,102 @@ | ||
--- | ||
suite: ATS kubernetes service tests | ||
templates: | ||
- deployment-filestore.yaml | ||
- deployment-imagemagick.yaml | ||
- deployment-libreoffice.yaml | ||
- deployment-pdfrenderer.yaml | ||
- deployment-tika.yaml | ||
- deployment-transform-misc.yaml | ||
- deployment-transform-router.yaml | ||
- svc-filestore.yaml | ||
- svc-imagemagick.yaml | ||
- svc-libreoffice.yaml | ||
- svc-pdfrenderer.yaml | ||
- svc-tika.yaml | ||
- svc-transform-misc.yaml | ||
- svc-transform-router.yaml | ||
- config-filestore.yaml | ||
- config-imagemagick.yaml | ||
- config-libreoffice.yaml | ||
- config-pdfrenderer.yaml | ||
- config-tika.yaml | ||
- config-transform-misc.yaml | ||
- config-transform-router.yaml | ||
- secret-messagebroker.yaml | ||
|
||
|
||
tests: | ||
- it: should render a service with matching pods | ||
values: &testvalues | ||
- values/test_values.yaml | ||
asserts: | ||
- isSubset: | ||
path: spec.template.metadata.labels | ||
content: &trouter_labels | ||
app.kubernetes.io/name: transform-router | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
template: deployment-transform-router.yaml | ||
- isSubset: | ||
path: spec.selector | ||
content: *trouter_labels | ||
template: svc-transform-router.yaml | ||
- isSubset: | ||
path: spec.template.metadata.labels | ||
content: &sfs_labels | ||
app.kubernetes.io/name: filestore | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
template: deployment-filestore.yaml | ||
- isSubset: | ||
path: spec.selector | ||
content: *sfs_labels | ||
template: svc-filestore.yaml | ||
- isSubset: | ||
path: spec.template.metadata.labels | ||
content: &im_labels | ||
app.kubernetes.io/name: imagemagick | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
template: deployment-imagemagick.yaml | ||
- isSubset: | ||
path: spec.selector | ||
content: *im_labels | ||
template: svc-imagemagick.yaml | ||
- isSubset: | ||
path: spec.template.metadata.labels | ||
content: &lo_labels | ||
app.kubernetes.io/name: libreoffice | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
template: deployment-libreoffice.yaml | ||
- isSubset: | ||
path: spec.selector | ||
content: *lo_labels | ||
template: svc-libreoffice.yaml | ||
- isSubset: | ||
path: spec.template.metadata.labels | ||
content: &pdf_labels | ||
app.kubernetes.io/name: pdfrenderer | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
template: deployment-pdfrenderer.yaml | ||
- isSubset: | ||
path: spec.selector | ||
content: *pdf_labels | ||
template: svc-pdfrenderer.yaml | ||
- isSubset: | ||
path: spec.template.metadata.labels | ||
content: &tika_labels | ||
app.kubernetes.io/name: tika | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
template: deployment-tika.yaml | ||
- isSubset: | ||
path: spec.selector | ||
content: *tika_labels | ||
template: svc-tika.yaml | ||
- isSubset: | ||
path: spec.template.metadata.labels | ||
content: &misc_labels | ||
app.kubernetes.io/name: transform-misc | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
template: deployment-transform-misc.yaml | ||
- isSubset: | ||
path: spec.selector | ||
content: *misc_labels | ||
template: svc-transform-misc.yaml |