kubelet: Add container readiness manager.

Move the readiness managing logic into pkg/kubelet/container package
to facilitate the pluggable container runtime.
This commit is contained in:
Yifan Gu
2015-03-26 18:45:23 -07:00
parent 0fb131c4f9
commit 6fecda710c
6 changed files with 107 additions and 85 deletions

View File

@@ -36,9 +36,7 @@ type RefManager struct {
// NewRefManager creates and returns a container reference manager
// with empty contents.
func NewRefManager() *RefManager {
c := RefManager{}
c.containerIDToRef = make(map[string]*api.ObjectReference)
return &c
return &RefManager{containerIDToRef: make(map[string]*api.ObjectReference)}
}
// SetRef stores a reference to a pod's container, associating it with the given container ID.