-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow templating in jenkins.url template (#929)
- Loading branch information
1 parent
1662ed1
commit f60c959
Showing
3 changed files
with
29 additions
and
3 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
26 changes: 26 additions & 0 deletions
26
charts/jenkins/unittests/jenkins-controller-ingress-DRY-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,26 @@ | ||
suite: Controller Ingress - DRY Support | ||
release: | ||
name: my-release | ||
namespace: my-namespace | ||
templates: | ||
- jenkins-controller-ingress.yaml | ||
- jcasc-config.yaml | ||
tests: | ||
- it: controller-ingress | ||
template: jenkins-controller-ingress.yaml | ||
set: | ||
global.jenkinsHostname: "jenkins.example.com" | ||
controller.ingress: | ||
enabled: true | ||
hostName: "{{ .Values.global.jenkinsHostname }}" | ||
resourceRootUrl: "{{ .Values.global.jenkinsHostname }}" | ||
tls: | ||
- hosts: | ||
- "{{ .Values.global.jenkinsHostname }}" | ||
asserts: | ||
- equal: | ||
path: spec.rules[0].host | ||
value: "jenkins.example.com" | ||
- equal: | ||
path: spec.tls[0].hosts[0] | ||
value: "jenkins.example.com" |