diff --git a/bitnami/jenkins/Chart.yaml b/bitnami/jenkins/Chart.yaml index 5e0648161..2021aa0e9 100644 --- a/bitnami/jenkins/Chart.yaml +++ b/bitnami/jenkins/Chart.yaml @@ -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: diff --git a/bitnami/jenkins/README.md b/bitnami/jenkins/README.md index 599250ec0..6c8b5fb42 100644 --- a/bitnami/jenkins/README.md +++ b/bitnami/jenkins/README.md @@ -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) | diff --git a/bitnami/jenkins/templates/deployment.yaml b/bitnami/jenkins/templates/deployment.yaml index d92352375..4f48cba70 100644 --- a/bitnami/jenkins/templates/deployment.yaml +++ b/bitnami/jenkins/templates/deployment.yaml @@ -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 diff --git a/bitnami/jenkins/values.yaml b/bitnami/jenkins/values.yaml index 53061fe2c..98bcd5ecc 100644 --- a/bitnami/jenkins/values.yaml +++ b/bitnami/jenkins/values.yaml @@ -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 ##