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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user