move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod

This commit is contained in:
Chao Xu
2017-04-17 10:56:40 -07:00
parent f96b187fcb
commit 4f9591b1de
126 changed files with 1472 additions and 981 deletions

View File

@@ -111,7 +111,7 @@ func PodNotReady(p *v1.Pod) (bool, error) {
}
// podReady returns whether pod has a condition of Ready with a status of true.
// TODO: should be replaced with v1.IsPodReady
// TODO: should be replaced with podutil.IsPodReady
func PodReady(pod *v1.Pod) bool {
for _, cond := range pod.Status.Conditions {
if cond.Type == v1.PodReady && cond.Status == v1.ConditionTrue {