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
540f3bb7
Commit
540f3bb7
authored
Jan 14, 2017
by
zdj6373
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log rectification,review
parent
27e33982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
controller_ref_manager.go
pkg/controller/controller_ref_manager.go
+1
-1
No files found.
pkg/controller/controller_ref_manager.go
View file @
540f3bb7
...
...
@@ -109,7 +109,7 @@ func GetControllerOf(controllee *v1.ObjectMeta) *metav1.OwnerReference {
func
(
m
*
PodControllerRefManager
)
AdoptPod
(
pod
*
v1
.
Pod
)
error
{
// we should not adopt any pods if the controller is about to be deleted
if
m
.
controllerObject
.
DeletionTimestamp
!=
nil
{
return
fmt
.
Errorf
(
"cancel the adopt attempt for pod %s because the controll
l
er is being deleted"
,
return
fmt
.
Errorf
(
"cancel the adopt attempt for pod %s because the controller is being deleted"
,
strings
.
Join
([]
string
{
pod
.
Namespace
,
pod
.
Name
,
string
(
pod
.
UID
)},
"_"
))
}
addControllerPatch
:=
fmt
.
Sprintf
(
...
...
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