From 6868455c96c7e95bc279e520d6071d55160fefc4 Mon Sep 17 00:00:00 2001 From: Tony Yip Date: Mon, 14 Feb 2022 21:50:12 +0800 Subject: [PATCH] [bitnami/jenkins] feat: allow config service account (#8953) * [bitnami/jenkins] feat: allow config service account Signed-off-by: Tony Yip * [bitnami/jenkins] chore: bump Jenkins chart version Signed-off-by: Tony Yip * [bitnami/jenkins] chore: update README.md Signed-off-by: Tony Yip * [bitnami/jenkins] style: fix for yamllint Signed-off-by: Tony Yip * [bitnami/jenkins] docs: update README.md Signed-off-by: Tony Yip --- bitnami/jenkins/Chart.yaml | 4 ++-- bitnami/jenkins/README.md | 7 ++++--- bitnami/jenkins/templates/deployment.yaml | 1 + bitnami/jenkins/values.schema.json | 6 ++++++ bitnami/jenkins/values.yaml | 5 +++++ 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/bitnami/jenkins/Chart.yaml b/bitnami/jenkins/Chart.yaml index 77fb67e895..2cef490d91 100644 --- a/bitnami/jenkins/Chart.yaml +++ b/bitnami/jenkins/Chart.yaml @@ -8,7 +8,7 @@ dependencies: tags: - bitnami-common version: 1.x.x -description: Jenkins is an open source Continuous Integration and Continuous Delivery (CI/CD) server designed to automate the building, testing, and deploying of any software project. +description: Jenkins is an open source Continuous Integration and Continuous Delivery (CI/CD) server designed to automate the building, testing, and deploying of any software project. engine: gotpl home: https://github.com/bitnami/charts/tree/master/bitnami/jenkins icon: https://bitnami.com/assets/stacks/jenkins/img/jenkins-stack-220x234.png @@ -26,4 +26,4 @@ name: jenkins sources: - https://github.com/bitnami/bitnami-docker-jenkins - https://jenkins.io/ -version: 8.1.7 +version: 8.2.0 diff --git a/bitnami/jenkins/README.md b/bitnami/jenkins/README.md index 48155c589d..e4384cb851 100644 --- a/bitnami/jenkins/README.md +++ b/bitnami/jenkins/README.md @@ -81,7 +81,7 @@ The command removes all the Kubernetes components associated with the chart and | ------------------- | -------------------------------------------------- | ---------------------- | | `image.registry` | Jenkins image registry | `docker.io` | | `image.repository` | Jenkins image repository | `bitnami/jenkins` | -| `image.tag` | Jenkins image tag (immutable tags are recommended) | `2.319.2-debian-10-r0` | +| `image.tag` | Jenkins image tag (immutable tags are recommended) | `2.319.3-debian-10-r3` | | `image.pullPolicy` | Jenkins image pull policy | `IfNotPresent` | | `image.pullSecrets` | Jenkins image pull secrets | `[]` | | `image.debug` | Enable image debug mode | `false` | @@ -109,6 +109,7 @@ The command removes all the Kubernetes components associated with the chart and | Name | Description | Value | | --------------------------------------- | ----------------------------------------------------------------------------------------- | --------------- | | `updateStrategy.type` | Jenkins deployment strategy type | `RollingUpdate` | +| `serviceAccountName` | Jenkins pod service account name | `default` | | `priorityClassName` | Jenkins pod priority class name | `""` | | `hostAliases` | Jenkins pod host aliases | `[]` | | `extraVolumes` | Optionally specify extra list of additional volumes for Jenkins pods | `[]` | @@ -191,7 +192,7 @@ The command removes all the Kubernetes components associated with the chart and | `volumePermissions.enabled` | Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup` | `false` | | `volumePermissions.image.registry` | Bitnami Shell image registry | `docker.io` | | `volumePermissions.image.repository` | Bitnami Shell image repository | `bitnami/bitnami-shell` | -| `volumePermissions.image.tag` | Bitnami Shell image tag (immutable tags are recommended) | `10-debian-10-r311` | +| `volumePermissions.image.tag` | Bitnami Shell image tag (immutable tags are recommended) | `10-debian-10-r337` | | `volumePermissions.image.pullPolicy` | Bitnami Shell image pull policy | `IfNotPresent` | | `volumePermissions.image.pullSecrets` | Bitnami Shell image pull secrets | `[]` | | `volumePermissions.resources.limits` | The resources limits for the init container | `{}` | @@ -206,7 +207,7 @@ The command removes all the Kubernetes components associated with the chart and | `metrics.enabled` | Start a sidecar prometheus exporter to expose Jenkins metrics | `false` | | `metrics.image.registry` | Jenkins Exporter image registry | `docker.io` | | `metrics.image.repository` | Jenkins Exporter image repository | `bitnami/jenkins-exporter` | -| `metrics.image.tag` | Jenkins Jenkins Exporter image tag (immutable tags are recommended) | `0.20171225.0-debian-10-r678` | +| `metrics.image.tag` | Jenkins Jenkins Exporter image tag (immutable tags are recommended) | `0.20171225.0-debian-10-r701` | | `metrics.image.pullPolicy` | Jenkins Exporter image pull policy | `IfNotPresent` | | `metrics.image.pullSecrets` | Jenkins Exporter image pull secrets | `[]` | | `metrics.containerSecurityContext.enabled` | Enabled Jenkins exporter containers' Security Context | `true` | diff --git a/bitnami/jenkins/templates/deployment.yaml b/bitnami/jenkins/templates/deployment.yaml index 283c93a09f..3ffa197ff0 100644 --- a/bitnami/jenkins/templates/deployment.yaml +++ b/bitnami/jenkins/templates/deployment.yaml @@ -26,6 +26,7 @@ spec: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} {{- end }} spec: + serviceAccountName: {{ .Values.serviceAccountName }} {{- include "jenkins.imagePullSecrets" . | nindent 6 }} {{- if .Values.hostAliases }} hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} diff --git a/bitnami/jenkins/values.schema.json b/bitnami/jenkins/values.schema.json index 19b8581a8d..0b13b6bc1d 100644 --- a/bitnami/jenkins/values.schema.json +++ b/bitnami/jenkins/values.schema.json @@ -2,6 +2,12 @@ "$schema": "http://json-schema.org/schema#", "type": "object", "properties": { + "serviceAccountName": { + "type": "string", + "title": "ServiceAccount name", + "form": true, + "description": "Defaults to use default if not set" + }, "jenkinsUser": { "type": "string", "title": "Username", diff --git a/bitnami/jenkins/values.yaml b/bitnami/jenkins/values.yaml index fd8bf4263d..cd9ccb6d85 100644 --- a/bitnami/jenkins/values.yaml +++ b/bitnami/jenkins/values.yaml @@ -129,6 +129,11 @@ extraEnvVarsSecret: "" ## updateStrategy: type: RollingUpdate + +## @param serviceAccountName Jenkins pod service account name +## +serviceAccountName: "default" + ## @param priorityClassName Jenkins pod priority class name ## priorityClassName: ""