[stable/jenkins] Add support for service account annotations in jenkins (#12969)

* Fix configmap of keycloak

Signed-off-by: kahootali <kahoot.ali@gmail.com>

* Add support for serviceAccountAnnotations

Signed-off-by: Muhammad Hamza Zaib <hamza@aurorasolutions.io>
This commit is contained in:
hamza3202
2019-04-11 02:02:12 -07:00
committed by Kubernetes Prow Robot
parent ffd7c203b9
commit b22774e2f2
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.37.2
version: 0.37.3
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
+2
View File
@@ -105,6 +105,8 @@ The following tables list the configurable parameters of the Jenkins chart and t
| `NetworkPolicy.Enabled` | Enable creation of NetworkPolicy resources. | `false` |
| `NetworkPolicy.ApiVersion` | NetworkPolicy ApiVersion | `networking.k8s.io/v1` |
| `rbac.install` | Create service account and ClusterRoleBinding for Kubernetes plugin | `false` |
| `rbac.serviceAccountName` | Name of service account | `default` |
| `rbac.serviceAccountAnnotations` | Service Account annotations | `{}` |
| `rbac.roleRef` | Cluster role name to bind to | `cluster-admin` |
| `rbac.roleKind` | Role kind (`Role` or `ClusterRole`)| `ClusterRole`
| `rbac.roleBindingKind` | Role binding kind (`RoleBinding` or `ClusterRoleBinding`)| `ClusterRoleBinding` |
@@ -4,6 +4,10 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ $serviceName }}
{{- if .Values.rbac.serviceAccountAnnotations }}
annotations:
{{ toYaml .Values.rbac.serviceAccountAnnotations | indent 4 }}
{{ end }}
labels:
app: {{ $serviceName }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+1
View File
@@ -361,6 +361,7 @@ NetworkPolicy:
rbac:
install: false
serviceAccountName: default
serviceAccountAnnotations: {}
# Role reference
roleRef: cluster-admin
# Role kind (Role or ClusterRole)