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
f74fab4e
Commit
f74fab4e
authored
May 01, 2015
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7603 from vmarmol/runtime-syncpod-api
Add SyncPod() and remove Kill/Run InContainer().
parents
5f0dbfc0
6316b485
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
runtime.go
pkg/kubelet/container/runtime.go
+2
-4
No files found.
pkg/kubelet/container/runtime.go
View file @
f74fab4e
...
...
@@ -46,12 +46,10 @@ type Runtime interface {
GetPods
(
all
bool
)
([]
*
Pod
,
error
)
// RunPod starts all the containers of a pod within a namespace.
RunPod
(
*
api
.
Pod
,
map
[
string
]
volume
.
Volume
)
error
// Syncs the running pod into the desired pod.
SyncPod
(
pod
*
api
.
Pod
,
runningPod
Pod
,
podStatus
api
.
PodStatus
)
error
// KillPod kills all the containers of a pod.
KillPod
(
pod
Pod
)
error
// RunContainerInPod starts a container within the same namespace of a pod.
RunContainerInPod
(
api
.
Container
,
*
api
.
Pod
,
map
[
string
]
volume
.
Volume
)
error
// KillContainerInPod kills a container in the pod.
KillContainerInPod
(
api
.
Container
,
*
api
.
Pod
)
error
// GetPodStatus retrieves the status of the pod, including the information of
// all containers in the pod.
GetPodStatus
(
*
api
.
Pod
)
(
*
api
.
PodStatus
,
error
)
...
...
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