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
d6777557
Commit
d6777557
authored
Nov 13, 2014
by
Daniel Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2305 from ddysher/rm-create-check
Remove health check when creating node.
parents
7cab32b4
c83ee59e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
rest.go
pkg/registry/minion/rest.go
+4
-11
No files found.
pkg/registry/minion/rest.go
View file @
d6777557
...
...
@@ -60,21 +60,14 @@ func (rs *REST) Create(ctx api.Context, obj runtime.Object) (<-chan apiserver.RE
minion
.
CreationTimestamp
=
util
.
Now
()
return
apiserver
.
MakeAsync
(
func
()
(
runtime
.
Object
,
error
)
{
// TODO: Need to fill in any server-set fields (uid, timestamp, etc) before
// returning minion. Can't do it properly at the moment because the registry
// healthchecking, which might cause it to not return the minion at all. Fix
// this after we move the healthchecking out of the minion registry.
err
:=
rs
.
registry
.
CreateMinion
(
ctx
,
minion
)
if
err
!=
nil
{
return
nil
,
err
}
minionName
:=
minion
.
Name
minion
,
err
:=
rs
.
registry
.
GetMinion
(
ctx
,
minionName
)
if
err
==
ErrNotHealty
{
return
rs
.
toApiMinion
(
minionName
),
nil
}
if
minion
==
nil
{
return
nil
,
ErrDoesNotExist
}
if
err
!=
nil
{
return
nil
,
err
}
return
minion
,
nil
}),
nil
}
...
...
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