Copied from https://github.com/kubernetes/kubernetes/tree/master/third_party/forked/golang/expansion .

This is to eliminate a direct dependency on `k8s.io/kubernetes`.

Ref: https://github.com/kubernetes/kubernetes/issues/79384#issuecomment-505627280
