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
c83ee59e
Commit
c83ee59e
authored
Nov 11, 2014
by
Deyuan Deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove health check when creating node.
parent
e0e68689
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 @
c83ee59e
...
@@ -60,21 +60,14 @@ func (rs *REST) Create(ctx api.Context, obj runtime.Object) (<-chan apiserver.RE
...
@@ -60,21 +60,14 @@ func (rs *REST) Create(ctx api.Context, obj runtime.Object) (<-chan apiserver.RE
minion
.
CreationTimestamp
=
util
.
Now
()
minion
.
CreationTimestamp
=
util
.
Now
()
return
apiserver
.
MakeAsync
(
func
()
(
runtime
.
Object
,
error
)
{
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
)
err
:=
rs
.
registry
.
CreateMinion
(
ctx
,
minion
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
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
return
minion
,
nil
}),
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