Determine PodStatus based on ContainerStatus and RestartPolicy

Close #2532
This deserves a comment.