I find myself writing this a lot for code that I want to work in production, but also in a development environment.
This has been tested on k8s 1.2.2.
You must have the correct version of github.com/imdario/mergo
vendored. Look at k8s.io/kubernetes/Godeps/Godeps.json to see which commit is used by Kubernetes.
TODO: add the vendor/manifest
file that gb
could use to restore vendored dependencies, since minimizing that just to get the code below to work is a monumental effort as well.