diff --git a/stable/jenkins/Chart.yaml b/stable/jenkins/Chart.yaml index 663eee9088..020746cb03 100755 --- a/stable/jenkins/Chart.yaml +++ b/stable/jenkins/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: jenkins home: https://jenkins.io/ -version: 1.7.2 +version: 1.7.3 appVersion: lts description: Open source continuous integration server. It supports multiple SCM tools including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based diff --git a/stable/jenkins/README.md b/stable/jenkins/README.md index e626f40e34..d9f54e43be 100644 --- a/stable/jenkins/README.md +++ b/stable/jenkins/README.md @@ -164,6 +164,7 @@ The following tables list the configurable parameters of the Jenkins chart and t | `master.prometheus.alertingrules` | Array of prometheus alerting rules | `[]` | | `master.prometheus.alertingRulesAdditionalLabels` | Additional labels to add to the prometheus rule object | `{}` | | `master.priorityClassName` | The name of a `priorityClass` to apply to the master pod | Not set | +| `master.testEnabled` | Can be used to disable rendering test resources when using helm template | `true` | | `networkPolicy.enabled` | Enable creation of NetworkPolicy resources. | `false` | | `networkPolicy.apiVersion` | NetworkPolicy ApiVersion | `networking.k8s.io/v1` | | `rbac.create` | Whether RBAC resources are created | `true` | diff --git a/stable/jenkins/templates/tests/jenkins-test.yaml b/stable/jenkins/templates/tests/jenkins-test.yaml index 51e79c6186..edf884bbe7 100644 --- a/stable/jenkins/templates/tests/jenkins-test.yaml +++ b/stable/jenkins/templates/tests/jenkins-test.yaml @@ -1,3 +1,4 @@ +{{- if .Values.master.testEnabled }} apiVersion: v1 kind: Pod metadata: @@ -48,3 +49,4 @@ spec: - name: tools emptyDir: {} restartPolicy: Never +{{- end }} diff --git a/stable/jenkins/templates/tests/test-config.yaml b/stable/jenkins/templates/tests/test-config.yaml index 8774da572d..509de7dedd 100644 --- a/stable/jenkins/templates/tests/test-config.yaml +++ b/stable/jenkins/templates/tests/test-config.yaml @@ -1,3 +1,4 @@ +{{- if .Values.master.testEnabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -8,3 +9,4 @@ data: @test "Testing Jenkins UI is accessible" { curl --retry 48 --retry-delay 10 {{ template "jenkins.fullname" . }}:{{ .Values.master.servicePort }}{{ default "" .Values.master.jenkinsUriPrefix }}/login } +{{- end }} diff --git a/stable/jenkins/values.yaml b/stable/jenkins/values.yaml index aa904980c4..732c9a45ab 100644 --- a/stable/jenkins/values.yaml +++ b/stable/jenkins/values.yaml @@ -353,6 +353,9 @@ master: # The `groups` root object is added by default, simply add the rule entries alertingrules: [] + # Can be used to disable rendering master test resources when using helm template + testEnabled: true + agent: enabled: true image: "jenkins/jnlp-slave"