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
75e28b0d
Commit
75e28b0d
authored
Jul 23, 2018
by
David Eads
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing OrDie variant for dynamic client construction
parent
446cf20c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
simple.go
staging/src/k8s.io/client-go/dynamic/simple.go
+10
-0
No files found.
staging/src/k8s.io/client-go/dynamic/simple.go
View file @
75e28b0d
...
...
@@ -36,6 +36,16 @@ type dynamicClient struct {
var
_
Interface
=
&
dynamicClient
{}
// NewForConfigOrDie creates a new Interface for the given config and
// panics if there is an error in the config.
func
NewForConfigOrDie
(
c
*
rest
.
Config
)
Interface
{
ret
,
err
:=
NewForConfig
(
c
)
if
err
!=
nil
{
panic
(
err
)
}
return
ret
}
func
NewForConfig
(
inConfig
*
rest
.
Config
)
(
Interface
,
error
)
{
config
:=
rest
.
CopyConfig
(
inConfig
)
// for serializing the options
...
...
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