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
ede4fb4a
Commit
ede4fb4a
authored
Apr 14, 2015
by
Xiang Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg/kubelet: remove unnecessary wrapper code in pod_manager.go
parent
12984c85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
pod_manager.go
pkg/kubelet/pod_manager.go
+1
-11
No files found.
pkg/kubelet/pod_manager.go
View file @
ede4fb4a
...
@@ -72,7 +72,7 @@ type basicPodManager struct {
...
@@ -72,7 +72,7 @@ type basicPodManager struct {
mirrorPodByFullName
map
[
string
]
*
api
.
Pod
mirrorPodByFullName
map
[
string
]
*
api
.
Pod
// A mirror pod client to create/delete mirror pods.
// A mirror pod client to create/delete mirror pods.
mirrorClient
mirrorClient
mirrorClient
}
}
func
newBasicPodManager
(
apiserverClient
client
.
Interface
)
*
basicPodManager
{
func
newBasicPodManager
(
apiserverClient
client
.
Interface
)
*
basicPodManager
{
...
@@ -271,16 +271,6 @@ func (self *basicPodManager) DeleteOrphanedMirrorPods() {
...
@@ -271,16 +271,6 @@ func (self *basicPodManager) DeleteOrphanedMirrorPods() {
}
}
}
}
// Creates a mirror pod for the given pod.
func
(
self
*
basicPodManager
)
CreateMirrorPod
(
pod
api
.
Pod
)
error
{
return
self
.
mirrorClient
.
CreateMirrorPod
(
pod
)
}
// Delete a mirror pod by name.
func
(
self
*
basicPodManager
)
DeleteMirrorPod
(
podFullName
string
)
error
{
return
self
.
mirrorClient
.
DeleteMirrorPod
(
podFullName
)
}
// Returns true if mirrorPod is a correct representation of pod; false otherwise.
// Returns true if mirrorPod is a correct representation of pod; false otherwise.
func
(
self
*
basicPodManager
)
IsMirrorPodOf
(
mirrorPod
,
pod
*
api
.
Pod
)
bool
{
func
(
self
*
basicPodManager
)
IsMirrorPodOf
(
mirrorPod
,
pod
*
api
.
Pod
)
bool
{
// Check name and namespace first.
// Check name and namespace first.
...
...
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