forked from jenkins-infra/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jenkinsio) ensure default values are valid. Closes jenkins-infra#658
- Loading branch information
Showing
4 changed files
with
61 additions
and
2 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 |
---|---|---|
|
@@ -4,4 +4,4 @@ maintainers: | |
- name: timja | ||
- name: dduportal | ||
name: jenkinsio | ||
version: 0.6.0 | ||
version: 0.6.1 |
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,30 @@ | ||
suite: Test with custom values | ||
# templates: | ||
# - deployment.yaml | ||
# - ingress.yaml | ||
# - nginx-configmap.yaml # Direct dependency of deployment.yaml | ||
tests: | ||
# - it: should create an ingress when ingress.enabled is true | ||
# set: | ||
# ingress: | ||
# enabled: true | ||
# template: ingress.yaml | ||
# asserts: | ||
# - hasDocuments: | ||
# count: 1 | ||
# - it: should mount the html volume when htmlVolume is set | ||
# template: deployment.yaml | ||
# set: | ||
# htmlVolume: | ||
# hostPath: /host | ||
# asserts: | ||
# - hasDocuments: | ||
# count: 1 | ||
# - isKind: | ||
# of: Deployment | ||
# - equal: | ||
# path: spec.template.spec.volumes[0].name | ||
# value: html | ||
# - equal: | ||
# path: spec.template.spec.volumes[0].hostPath | ||
# value: /host |
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,27 @@ | ||
suite: Test with default values | ||
templates: | ||
- deployment.yaml | ||
- zh-deployment.yaml | ||
- zh-configmap.yaml | ||
- nginx-configmap.yaml | ||
tests: | ||
- it: should create a deployment for jenkins.io with default values | ||
template: deployment.yaml | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: Deployment | ||
- equal: | ||
path: metadata.name | ||
value: RELEASE-NAME-jenkinsio | ||
- it: should create a deployment for zh.jenkins.io with default values | ||
template: zh-deployment.yaml | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: Deployment | ||
- equal: | ||
path: metadata.name | ||
value: RELEASE-NAME-jenkinsio-zh |
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