Currently, after a prehook or posthook pod completes, it is deleted. This means that a normal OpenShift user cannot view the logs because they would need system-level access to directly view the Docker logs.
This behavior wasn't present in beta4.
Some thoughts for solutions:
- flag in the hook itself "do not delete"
- flag in dc/rc template "keep x lifecycle pods"
- flag on project "keep x lifecycle pods"
- flag on master-config "keep x lifecycle pods"
This is related to #3544 in some ways.