Port kubectl namespace support

This is a port of the function that was added in the following upstream Kubernetes PR:

https://github.com/GoogleCloudPlatform/kubernetes/pull/1941

Its a required feature to support creating function scoped to a project.