[stable/jenkins] Add option to overwrite plugins (#11231)

* [stable/jenkins] Add option to overwrite plugins

Add an option to that will overwrite all installed
plugins with their versions with the values
provided via the Master.InstallPlugins parameter.

Signed-off-by: Jannis Oeltjen <oss@jcoeltjen.de>

* [stable/jenkins] bump version SemVer style

Signed-off-by: Jannis Oeltjen <oss@jcoeltjen.de>
This commit is contained in:
Jannis Oeltjen
2019-02-11 01:19:59 -08:00
committed by Kubernetes Prow Robot
parent c286d3d946
commit 0e9aa00a5c
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 0.30.0
version: 0.31.0
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
@@ -80,6 +80,7 @@ The following tables list the configurable parameters of the Jenkins chart and t
| `Master.SecretsFilesSecret` | Kubernetes secret that contains 'secrets' files | Not set |
| `Master.Jobs` | Jenkins XML job configs | Not set |
| `Master.InstallPlugins` | List of Jenkins plugins to install | `kubernetes:1.14.0 workflow-aggregator:2.6 credentials-binding:1.17 git:3.9.1 workflow-job:2.31` |
| `Master.OverwritePlugins` | Overwrite installed plugins on start.| `false` |
| `Master.EnableRawHtmlMarkupFormatter` | Enable HTML parsing using (see below) | Not set |
| `Master.ScriptApproval` | List of groovy functions to approve | Not set |
| `Master.NodeSelector` | Node labels for pod assignment | `{}` |
+4
View File
@@ -231,6 +231,10 @@ data:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.Master.OverwritePlugins }}
# remove all plugins from shared volume
rm -rf /var/jenkins_home/plugins/*
{{- end }}
{{- if .Values.Master.InstallPlugins }}
# Install missing plugins
cp /var/jenkins_config/plugins.txt /var/jenkins_home;
+2
View File
@@ -138,6 +138,8 @@ Master:
- credentials-binding:1.17
- git:3.9.1
# Enable to always override the installed plugins with the values of 'Master.InstallPlugins' on upgrade or redeployment.
# OverwritePlugins: true
# Enable HTML parsing using OWASP Markup Formatter Plugin (antisamy-markup-formatter), useful with ghprb plugin.
# The plugin is not installed by default, please update Master.InstallPlugins.
# EnableRawHtmlMarkupFormatter: true