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
585daa20
Commit
585daa20
authored
Nov 21, 2016
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use the client builder to support using SAs
parent
21c30433
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
25 deletions
+22
-25
controllermanager.go
cmd/kube-controller-manager/app/controllermanager.go
+20
-23
client_builder.go
pkg/controller/client_builder.go
+2
-2
No files found.
cmd/kube-controller-manager/app/controllermanager.go
View file @
585daa20
This diff is collapsed.
Click to expand it.
pkg/controller/client_builder.go
View file @
585daa20
...
...
@@ -51,7 +51,7 @@ type SimpleControllerClientBuilder struct {
func
(
b
SimpleControllerClientBuilder
)
Config
(
name
string
)
(
*
restclient
.
Config
,
error
)
{
clientConfig
:=
*
b
.
ClientConfig
return
&
clientConfig
,
nil
return
restclient
.
AddUserAgent
(
&
clientConfig
,
name
)
,
nil
}
func
(
b
SimpleControllerClientBuilder
)
ConfigOrDie
(
name
string
)
*
restclient
.
Config
{
...
...
@@ -67,7 +67,7 @@ func (b SimpleControllerClientBuilder) Client(name string) (clientset.Interface,
if
err
!=
nil
{
return
nil
,
err
}
return
clientset
.
NewForConfig
(
restclient
.
AddUserAgent
(
clientConfig
,
name
)
)
return
clientset
.
NewForConfig
(
clientConfig
)
}
func
(
b
SimpleControllerClientBuilder
)
ClientOrDie
(
name
string
)
clientset
.
Interface
{
...
...
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