mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Lachlan Evenson
parent
4957790c02
commit
0dc349b448
@@ -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 }}"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user