Merge pull request #821 from bitnami/newJenkins

Add new Jenkins env variables
This commit is contained in:
Carlos Rodríguez Hernández
2018-09-26 16:26:26 +02:00
committed by GitHub
4 changed files with 26 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: jenkins
version: 1.0.0
version: 1.1.0
appVersion: 2.138.1
description: The leading open source automation server
keywords:
+3
View File
@@ -52,6 +52,9 @@ The following tables lists the configurable parameters of the Jenkins chart and
| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
| `jenkinsUser` | User of the application | `user` |
| `jenkinsPassword` | Application password | _random 10 character alphanumeric string_ |
| `jenkinsHome` | Jenkins home directory | `/opt/bitnami/jenkins/jenkins_home` |
| `disableInitialization` | Allows to disable the initial Bitnami configuration for Jenkins | `no` |
| `javaOpts` | Customize JVM parameters | `nil` |
| `serviceType` | Kubernetes Service type | `LoadBalancer` |
| `persistence.enabled` | Enable persistence using PVC | `true` |
| `persistence.storageClass` | PVC Storage Class for Jenkins volume | `nil` (uses alpha storage class annotation) |
+9 -1
View File
@@ -31,12 +31,20 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
env:
- name: JENKINS_USERNAME
value: {{ default "" .Values.jenkinsUser | quote }}
value: {{ .Values.jenkinsUser | quote }}
- name: JENKINS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "fullname" . }}
key: jenkins-password
- name: JENKINS_HOME
value: {{ .Values.jenkinsHome | quote }}
- name: DISABLE_JENKINS_INITIALIZATION
value: {{ .Values.disableInitialization | quote }}
{{- if .Values.javaOpts }}
- name: JAVA_OPTS
value: {{ .Values.javaOpts | quote }}
{{- end }}
ports:
- name: http
containerPort: 8080
+13 -1
View File
@@ -15,7 +15,7 @@ image:
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - myRegistrKeySecretName
# - myRegistrKeySecretName
## User of the application
## ref: https://github.com/bitnami/bitnami-docker-jenkins#configuration
@@ -28,6 +28,18 @@ jenkinsUser: user
##
# jenkinsPassword:
## Jenkins home directory
##
homeDir: /opt/bitnami/jenkins/jenkins_home
## Allows to disable the initial Bitnami configuration for Jenkins
##
disableInitialization: no
## Customize JVM parameters
##
# javaOpts:
## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use LoadBalancer
##