make kubelet.HandlePodsDeletion aware of api.Pod

This commit is contained in:
Chao Xu
2016-01-31 15:56:55 -08:00
parent fdf6a0f61c
commit a6d96a04d0
3 changed files with 33 additions and 19 deletions

View File

@@ -141,6 +141,14 @@ type Pod struct {
Containers []*Container
}
// PodPair contains both runtime#Pod and api#Pod
type PodPair struct {
// APIPod is the api.Pod
APIPod *api.Pod
// RunningPod is the pod defined defined in pkg/kubelet/container/runtime#Pod
RunningPod *Pod
}
// ContainerID is a type that identifies a container.
type ContainerID struct {
// The type of the container runtime. e.g. 'docker', 'rkt'.