[stable/jenkins] Make Jenkins master UI test optional (#16752)

* [stable/jenkins] Make Jenkins master UI test optional

The UI test makes it difficult to do an idempotent deployment check
because the randomly named UI test Pod will always want to deploy
a new pod. For those that don't need the UI test but prefer an
idempotent deploy, allowing disabling the UI test seems like a good
idea to me. This commit does the following:

- Allow disabling the master UI test (skip test Pod + ConfigMap)
- Bump chart version to 1.5.10

Signed-off-by: Simon Wydooghe <simon@wydooghe.com>

* [stable/jenkins] Make Jenkins master UI test optional

Tweak README description + unnest test.enabled

Signed-off-by: Simon Wydooghe <simon@wydooghe.com>

* [stable/jenkins] Change variable name to master.enableTest

Signed-off-by: Simon Wydooghe <simon@wydooghe.com>
This commit is contained in:
Simon Wydooghe
2019-09-20 16:15:25 -07:00
committed by Kubernetes Prow Robot
parent 69afb2d8a5
commit 0dbfdce871
5 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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` |
@@ -1,3 +1,4 @@
{{- if .Values.master.testEnabled }}
apiVersion: v1
kind: Pod
metadata:
@@ -48,3 +49,4 @@ spec:
- name: tools
emptyDir: {}
restartPolicy: Never
{{- end }}
@@ -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 }}
+3
View File
@@ -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"