openshift/origin — pull request #231 by jhadvig (2014-10-20 13:57:33+00:00)
Title: [WIP] Log streaming

Adding possibility to stream logs if the build is running.
If the build is complete/failed the logs will be snapshoted.

There is a pending PR in k8s, which needs to get to our vendored k8s, before this PR can be merged.
`https://github.com/GoogleCloudPlatform/kubernetes/pull/1829`

Also there are two bottle-necks that need to be taken into account:
1. When the build is running and the image is being downloaded, this state is also classified as 'running', but the container itself is not running so the query for logs will return error, that container
2. The `WriteTimeout` in our vendored k8s (.../kubernetes/pkg/kubelet/server.go#L57) needs to be bumped to some reasonable timeout, else the connection between client and kubelet will be shutdown after 10 sec.