Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
3ba2a009
Unverified
Commit
3ba2a009
authored
Apr 03, 2018
by
Taylor Thomas
Committed by
GitHub
Apr 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3784 from jkoleszar/tiller-rbac
Fix tiller deployment on RBAC clusters
parents
9654c616
1e03f1bc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
install.go
cmd/helm/installer/install.go
+2
-0
install_test.go
cmd/helm/installer/install_test.go
+3
-0
No files found.
cmd/helm/installer/install.go
View file @
3ba2a009
...
...
@@ -176,6 +176,7 @@ func generateDeployment(opts *Options) (*v1beta1.Deployment, error) {
return
nil
,
err
}
}
automountServiceAccountToken
:=
opts
.
ServiceAccount
!=
""
d
:=
&
v1beta1
.
Deployment
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Namespace
:
opts
.
Namespace
,
...
...
@@ -190,6 +191,7 @@ func generateDeployment(opts *Options) (*v1beta1.Deployment, error) {
},
Spec
:
v1
.
PodSpec
{
ServiceAccountName
:
opts
.
ServiceAccount
,
AutomountServiceAccountToken
:
&
automountServiceAccountToken
,
Containers
:
[]
v1
.
Container
{
{
Name
:
"tiller"
,
...
...
cmd/helm/installer/install_test.go
View file @
3ba2a009
...
...
@@ -96,6 +96,9 @@ func TestDeploymentManifestForServiceAccount(t *testing.T) {
if
got
:=
d
.
Spec
.
Template
.
Spec
.
ServiceAccountName
;
got
!=
tt
.
serviceAccount
{
t
.
Errorf
(
"%s: expected service account value %q, got %q"
,
tt
.
name
,
tt
.
serviceAccount
,
got
)
}
if
got
:=
*
d
.
Spec
.
Template
.
Spec
.
AutomountServiceAccountToken
;
got
!=
(
tt
.
serviceAccount
!=
""
)
{
t
.
Errorf
(
"%s: unexpected automountServiceAccountToken = %t for serviceAccount %q"
,
tt
.
name
,
got
,
tt
.
serviceAccount
)
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment