Skip to content

Commit acaa8eb

Browse files
cblomqvisttimja
andauthored
fix: evaluate tpl values in secondary ingress host and tls hosts(1637) (#1638)
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
1 parent 2e4b7d8 commit acaa8eb

File tree

8 files changed

+520
-212
lines changed

8 files changed

+520
-212
lines changed

CONTRIBUTING.md

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ minikube service chart-$CHART
3232
- Must follow [Charts best practices](https://helm.sh/docs/topics/chart_best_practices/)
3333
- Must pass CI jobs for linting and installing changed charts with the [chart-testing](https://github.com/helm/chart-testing) tool
3434
- Any change to a chart requires a version bump following [SemVer](https://semver.org/) principles. See [Immutability](#immutability) and [Versioning](#versioning) below
35+
- Bump the `version` key in [charts/jenkins/Chart.yaml](charts/jenkins/Chart.yaml)
36+
- Add a new changelog entry to [charts/jenkins/CHANGELOG.md](charts/jenkins/CHANGELOG.md) with the new version and a description of the change
37+
- Run `.github/helm-docs.sh` from the project root. This will update the [charts/jenkins/VALUES.md](charts/jenkins/VALUES.md) file with changes you made in [charts/jenkins/values.yaml](charts/jenkins/values.yaml)
3538

3639
Once changes have been merged, the release job will automatically run to package and release changed charts.
3740

@@ -43,45 +46,54 @@ Tests can be executed like this:
4346

4447
```console
4548
# install the unittest plugin
46-
$ helm plugin install https://github.com/helm-unittest/helm-unittest --version 0.3.6
49+
$ helm plugin install https://github.com/helm-unittest/helm-unittest --version 1.0.3
4750

4851
# run the unittests
4952
$ helm unittest --strict -f 'unittests/*.yaml' charts/jenkins
5053

5154
### Chart [ jenkins ] charts/jenkins
5255

53-
2022/01/15 11:25:01 warning: destination for initScripts is a table. Ignoring non-table value []
54-
PASS ConfigMap charts/jenkins/unittests/config-init-scripts-test.yaml
55-
PASS ConfigMap charts/jenkins/unittests/config-test.yaml
56-
PASS PersistentVolumeClaim charts/jenkins/unittests/home-pvc-test.yaml
57-
PASS Configuration as Code charts/jenkins/unittests/jcasc-config-test.yaml
58-
PASS Jenkins Agent Service charts/jenkins/unittests/jenkins-agent-svc-test.yaml
59-
PASS Controller Prometheus PrometheusRule charts/jenkins/unittests/jenkins-controller-alerting-rules-test.yaml
60-
PASS Controller Primary Ingress charts/jenkins/unittests/jenkins-controller-ingress-1.19-test.yaml
61-
PASS Controller Primary Ingress charts/jenkins/unittests/jenkins-controller-ingress-test.yaml
62-
PASS Network Policy charts/jenkins/unittests/jenkins-controller-networkpolicy-test.yaml
63-
PASS Controller Pod Disruption Budget charts/jenkins/unittests/jenkins-controller-pdb-1.21-test.yaml
64-
PASS Controller Pod Disruption Budget charts/jenkins/unittests/jenkins-controller-pdb-test.yaml
65-
PASS Controller Secondary Ingress charts/jenkins/unittests/jenkins-controller-secondary-ingress-1.19-test.yaml
66-
PASS Controller Secondary Ingress charts/jenkins/unittests/jenkins-controller-secondary-ingress-test.yaml
67-
PASS Controller Prometheus ServiceMonitor charts/jenkins/unittests/jenkins-controller-servicemonitor_test.yaml
68-
PASS Jenkins Controller charts/jenkins/unittests/jenkins-controller-statefulset-test.yaml
69-
PASS Jenkins Controller charts/jenkins/unittests/jenkins-controller-svc-test.yaml
70-
PASS Role Based Access Control charts/jenkins/unittests/rbac-test.yaml
71-
PASS Controller Admin Additional Secrets charts/jenkins/unittests/secret-additional-test.yaml
72-
PASS Controller Secret Claims charts/jenkins/unittests/secret-claims-test.yaml
56+
PASS ConfigMap charts/jenkins/unittests/config-init-scripts-test.yaml
57+
PASS ConfigMap charts/jenkins/unittests/config-test.yaml
58+
PASS test extraObjects charts/jenkins/unittests/extra-objects-test.yaml
59+
PASS Garbage collection of pods charts/jenkins/unittests/garbage-collect-test.yaml
60+
PASS PersistentVolumeClaim charts/jenkins/unittests/home-pvc-test.yaml
61+
PASS Instance cap tests charts/jenkins/unittests/instance-cap-test.yaml
62+
2026/03/31 08:28:09 warning: destination for jenkins.controller.projectNamingStrategy is a table. Ignoring non-table value (standard)
63+
2026/03/31 08:28:09 warning: cannot overwrite table with non table for jenkins.controller.JCasC.security.apiToken (map[creationOfLegacyTokenEnabled:false tokenGenerationOnCreationEnabled:false usageStatisticsEnabled:true])
64+
PASS Configuration as Code charts/jenkins/unittests/jcasc-config-test.yaml
65+
PASS Jenkins Agent Service charts/jenkins/unittests/jenkins-agent-svc-test.yaml
66+
PASS Controller Prometheus PrometheusRule charts/jenkins/unittests/jenkins-controller-alerting-rules-test.yaml
67+
PASS Controller HTTPRoute charts/jenkins/unittests/jenkins-controller-httproute-test.yaml
68+
PASS Controller Primary Ingress charts/jenkins/unittests/jenkins-controller-ingress-1.19-test.yaml
69+
PASS Controller Ingress - DRY Support charts/jenkins/unittests/jenkins-controller-ingress-DRY-test.yaml
70+
PASS Controller Primary Ingress charts/jenkins/unittests/jenkins-controller-ingress-test.yaml
71+
PASS Network Policy charts/jenkins/unittests/jenkins-controller-networkpolicy-test.yaml
72+
PASS Controller Pod Disruption Budget charts/jenkins/unittests/jenkins-controller-pdb-1.21-test.yaml
73+
PASS Controller Pod Disruption Budget charts/jenkins/unittests/jenkins-controller-pdb-test.yaml
74+
PASS Controller Secondary Ingress charts/jenkins/unittests/jenkins-controller-secondary-ingress-1.19-test.yaml
75+
PASS Controller Secondary Ingress charts/jenkins/unittests/jenkins-controller-secondary-ingress-test.yaml
76+
PASS Controller Prometheus ServiceMonitor charts/jenkins/unittests/jenkins-controller-servicemonitor_test.yaml
77+
PASS Jenkins Controller charts/jenkins/unittests/jenkins-controller-statefulset-test.yaml
78+
PASS Jenkins Controller charts/jenkins/unittests/jenkins-controller-svc-test.yaml
79+
PASS Role Based Access Control charts/jenkins/unittests/rbac-test.yaml
80+
PASS Controller Admin Additional Secrets charts/jenkins/unittests/secret-additional-test.yaml
81+
PASS Controller Secret Claims charts/jenkins/unittests/secret-claims-test.yaml
7382
PASS Controller Additional Existing Secrets charts/jenkins/unittests/secret-existing-test.yaml
74-
PASS Controller Admin Credentials charts/jenkins/unittests/secret-test.yaml
75-
PASS Controller Service Account charts/jenkins/unittests/service-account-agent-test.yaml
76-
PASS Controller Service Account charts/jenkins/unittests/service-account-test.yaml
83+
PASS Controller Admin Credentials charts/jenkins/unittests/secret-test.yaml
84+
PASS Controller Service Account charts/jenkins/unittests/service-account-agent-test.yaml
85+
PASS Controller Service Account charts/jenkins/unittests/service-account-test.yaml
7786

7887
Charts: 1 passed, 1 total
79-
Test Suites: 24 passed, 24 total
80-
Tests: 119 passed, 119 total
81-
Snapshot: 1 passed, 1 total
82-
Time: 440.35914ms
88+
Test Suites: 28 passed, 28 total
89+
Tests: 214 passed, 214 total
90+
Snapshot: 50 passed, 50 total
91+
Time: 2.2434989s
8392
```
8493

94+
> **Note!**
95+
> Some warnings in the sample output are expected. A few unit tests intentionally provide values with a different type than the chart defaults to verify how the templates handle those inputs.
96+
8597
### Immutability
8698

8799
Chart releases must be immutable. Any change to a chart warrants a chart version bump even if it is only a change to the documentation.

charts/jenkins/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Use the following links to reference issues, PRs, and commits prior to v2.6.0.
1212
The changelog until v1.5.7 was auto-generated based on git commits.
1313
Those entries include a reference to the git commit to be able to get more details.
1414

15+
## 5.9.13
16+
17+
- Fix [#1637](https://github.com/jenkinsci/helm-charts/issues/1637): Evaluate tpl values in secondary ingress host and tls hosts
18+
- Fix [#476](https://github.com/jenkinsci/helm-charts/issues/476): Secondary ingress template should have parameters as primary ingress
19+
1520
## 5.9.12
1621

1722
Update `git` to version `5.10.1`

charts/jenkins/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: jenkins
33
type: application
44
home: https://www.jenkins.io/
5-
version: 5.9.12
5+
version: 5.9.13
66
appVersion: 2.541.3
77
description: >
88
Jenkins - Build great things at any scale! As the leading open source automation server, Jenkins provides over 2000 plugins to support building, deploying and automating any project.

0 commit comments

Comments
 (0)