forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jenkins Configuration as Code (helm#9057)
* Includes Jenkins Configuration as Code Signed-off-by: Brendan Holmes <[email protected]> * Minor README.md changes Signed-off-by: Brendan Holmes <[email protected]> * bumped CasC plugin version Signed-off-by: Brendan Holmes <[email protected]> * Adding auto config reload Signed-off-by: Brendan Holmes <[email protected]> * Needed to exclude some deployment config in the without-jcasc case. Fixed tabulation and simplified jcasc example in values.yaml. Tweaked documentation. Signed-off-by: Brendan Holmes <[email protected]> * Disabling auto-reload by default. Signed-off-by: Brendan Holmes <[email protected]> * Fixes error in corner-case where user has disabled config as code, but enabled auto-config. Signed-off-by: Brendan Holmes <[email protected]> * Expanded auto-config info in readme and added guidance for using non-internal identity db. Doubled master memory limit since entered OOM restart loop when using config-as-code plugin. Fixed missing casc_configs dir (in config.yaml & deployment.yaml) when not using auto-reload Signed-off-by: Brendan Holmes <[email protected]> * Sidecar was reloading once per key in the configmap when any single key had changed. Resolved by creating separate configmaps, one for each key under ConfigScripts. I was mistaken above that users only need Overall\Read rights to auto-reload. Seems JCasC has higher privilege requirements than the CLI\API generally. I've amended the Readme accordingly. Process for enabling for LDAP\other ID store is still simple. Fixed connectivity from sidecar when enabling non-root privileges by using a TCP port > 1024 (1044) Bumped the sidecar image from 0.0.1 to 0.0.2 which a few improvements: faster, less error-prone startup by testing the Jenkins container's avaibility using SSH port instead of the main jenkins port. This removes the need for an arbitary wait. Also fixed "access denied" when enabling non-root privileges by creating the same jenkins 1000 user in the sidecar. Signed-off-by: Brendan Holmes <[email protected]> * Minor fix: configmap names now include the release name Signed-off-by: Brendan Holmes <[email protected]> * Update stable/jenkins/templates/config.yaml Co-Authored-By: holmesb <[email protected]> Signed-off-by: Brendan Holmes <[email protected]> * Update stable/jenkins/templates/jcasc_config.yaml Co-Authored-By: holmesb <[email protected]> Signed-off-by: Brendan Holmes <[email protected]> * Replaced a few if conditions with simpler else statements in config.yaml Signed-off-by: Brendan Holmes <[email protected]> * Bumping to the latest Config as Code plugin version. Signed-off-by: Brendan Holmes <[email protected]>
- Loading branch information
Showing
9 changed files
with
316 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: jenkins | ||
home: https://jenkins.io/ | ||
version: 0.28.11 | ||
version: 0.29.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 | ||
|
@@ -9,6 +9,7 @@ sources: | |
- https://github.com/jenkinsci/jenkins | ||
- https://github.com/jenkinsci/docker-jnlp-slave | ||
- https://github.com/nuvo/kube-tasks | ||
- https://github.com/jenkinsci/configuration-as-code-plugin | ||
maintainers: | ||
- name: lachie83 | ||
email: [email protected] | ||
|
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
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
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,18 @@ | ||
{{- $root := . }} | ||
{{- if and (.Values.Master.JCasC.enabled) (.Values.Master.Sidecar.configAutoReload.enabled) }} | ||
{{- range $key, $val := .Values.Master.JCasC.ConfigScripts }} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: jenkins-config-{{ template "jenkins.fullname" $root }}-{{ $key }} | ||
labels: | ||
{{ $.Values.Master.Sidecar.configAutoReload.label | default "jenkins_config" }}: "true" | ||
release: {{ $root.Release.Name }} | ||
chart: "{{ $root.Chart.Name }}-{{ $root.Chart.Version }}" | ||
component: "{{ $root.Release.Name }}-{{ $.Values.Master.Name }}" | ||
data: | ||
{{ $key }}.yaml: |- | ||
{{ tpl $val $| indent 4 }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.