[stable/jenkins] Add serviceAccountName to deployment (#1477)

When RBAC is enabled the serviceAccountName needs to be set on the deployment.
This commit is contained in:
jordanjennings
2017-08-07 06:24:38 -07:00
committed by Lachlan Evenson
parent 4957790c02
commit 0dc349b448
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 0.8.2
version: 0.8.3
appVersion: 2.67
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 projects as well as arbitrary scripts.
sources:
@@ -61,6 +61,7 @@ spec:
{{- end }}
securityContext:
runAsUser: 0
serviceAccountName: {{ if .Values.rbac.install }}{{ template "fullname" . }}{{ else }}"{{ .Values.rbac.serviceAccountName }}"{{ end }}
containers:
- name: {{ template "fullname" . }}
image: "{{ .Values.Master.Image }}:{{ .Values.Master.ImageTag }}"
+1
View File
@@ -119,6 +119,7 @@ NetworkPolicy:
## Install Default RBAC roles and bindings
rbac:
install: false
serviceAccount: default
# RBAC api version (currently either v1beta1 or v1alpha1)
apiVersion: v1beta1
# Cluster role reference