Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8db1cfc2
Commit
8db1cfc2
authored
Feb 06, 2017
by
Xing Zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a tiny bug on using RoleBindingGenerator
Fixed a typo bug while using RoleBindingGenerator to bind role to service accounts.
parent
13424d87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
clusterrolebinding.go
pkg/kubectl/clusterrolebinding.go
+1
-1
rolebinding.go
pkg/kubectl/rolebinding.go
+1
-1
No files found.
pkg/kubectl/clusterrolebinding.go
View file @
8db1cfc2
...
@@ -77,7 +77,7 @@ func (s ClusterRoleBindingGeneratorV1) Generate(genericParams map[string]interfa
...
@@ -77,7 +77,7 @@ func (s ClusterRoleBindingGeneratorV1) Generate(genericParams map[string]interfa
return
nil
,
fmt
.
Errorf
(
"expected []string, found :%v"
,
fromFileStrings
)
return
nil
,
fmt
.
Errorf
(
"expected []string, found :%v"
,
fromFileStrings
)
}
}
delegate
.
ServiceAccounts
=
fromLiteralArray
delegate
.
ServiceAccounts
=
fromLiteralArray
delete
(
genericParams
,
"serviceaccount
s
"
)
delete
(
genericParams
,
"serviceaccount"
)
}
}
params
:=
map
[
string
]
string
{}
params
:=
map
[
string
]
string
{}
for
key
,
value
:=
range
genericParams
{
for
key
,
value
:=
range
genericParams
{
...
...
pkg/kubectl/rolebinding.go
View file @
8db1cfc2
...
@@ -79,7 +79,7 @@ func (s RoleBindingGeneratorV1) Generate(genericParams map[string]interface{}) (
...
@@ -79,7 +79,7 @@ func (s RoleBindingGeneratorV1) Generate(genericParams map[string]interface{}) (
return
nil
,
fmt
.
Errorf
(
"expected []string, found :%v"
,
fromFileStrings
)
return
nil
,
fmt
.
Errorf
(
"expected []string, found :%v"
,
fromFileStrings
)
}
}
delegate
.
ServiceAccounts
=
fromLiteralArray
delegate
.
ServiceAccounts
=
fromLiteralArray
delete
(
genericParams
,
"serviceaccount
s
"
)
delete
(
genericParams
,
"serviceaccount"
)
}
}
params
:=
map
[
string
]
string
{}
params
:=
map
[
string
]
string
{}
for
key
,
value
:=
range
genericParams
{
for
key
,
value
:=
range
genericParams
{
...
...
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