fabianofranz/origin — pull request #15 by deads2k (2014-11-19 20:10:32+00:00)
Title: [DO-NOT-MERGE] kube rebase e2e works

DON'T MERGE THIS! I've gotten hack/test-end-to-end.sh to run using the following changes. I'll explain the broken parts and I wanted you to be able to see where they were and demonstrations of how to work around the problem might make it more clear than me trying to explain.

[] v1beta1 PodTerminated status is converted to PodFailed status in memory. This confuses the build controller.go and the deploy controller.go because they see failed status. The conversion.go upstream should be fixed, but short term, you can handle this by actually inspecting PodFailed status to see if it really failed.
[] label names (maybe values too?) are restricted to a lower case only subset of dns952. I doubt this will be changed upstream, so you'll need to find all the offending label makers and fix them up.
[] the serialized json objects for the examples need to be updated to match the new openshift v1beta1 serialization format.
[] at some point, someone stopped substituting the service ip address for the REGISTRY_URL env variable. The default worked in hack/test-end-to-end.sh so no one noticed. I just updated the default to work most of the time. You should probably do that, but you should also have it substitute correctly during the test
[] the kubecfg --template option is failing. I hacked around it by replacing it with a grep | awk combination, but the kubecfg should work.
[] first touch on a new service sometimes hangs forever. This existed before, but I'm hitting it a lot more consistently. I simply added a max-time arg to curl in the test to have it retry. Clearly sub-par.
[] there was a bad merge for json serialization names around "stiStrategy". I updated the ones I noticed, but I'm not sure how much was missed during the original merge itself.
[] minion controller resources are hard coded. Upstream has them as arguments
[] our docker registry extension makes a request to tag an image (imageRepositoryMapping?). That request is still using an ID instead of Image.Name. I don't know where the docker registry extension code lives, so I added back in an ID and bridge the gap for the CreateImageRepositoryMapping method. The docker registry extension needs to be updated with the new serialization format.

@fabianofranz @smarterclayton @soltysh @mfojtik Less than 10 items stand between you and test-end-to-end.sh. Victory is almost yours!