Enforce namespace unique constraints

This is the update to actually enable namespace support.

At the moment, I pass a namespace as a query parameter in order to support namespace scoping on the v1beta urls.  Once v1beta3 lands, I will modify to pass namespace in the path.  Note the client libraries were modified to make this easy to do, so should be a trivial change once ready.

I broke the commits into logical sections to improve readability.
Sure thing - update complete.

----- Original Message -----
From: "Clayton Coleman" <notifications@github.com>
To: "GoogleCloudPlatform/kubernetes" <kubernetes@noreply.github.com>
Cc: "Derek Carr" <decarr@redhat.com>
Sent: Wednesday, October 8, 2014 1:36:47 PM
Subject: Re: [kubernetes] Enforce namespace unique constraints (#1564)

> @@ -139,16 +145,20 @@ func (h *EtcdHelper) ExtractList(key string, slicePtr interface{}, resourceVersi
>  	}
>  	v := pv.Elem()
>  	for _, node := range nodes {
> -		obj := reflect.New(v.Type().Elem())
> -		err = h.Codec.DecodeInto([]byte(node.Value), obj.Interface().(runtime.Object))
> -		if h.ResourceVersioner != nil {
> -			_ = h.ResourceVersioner.SetResourceVersion(obj.Interface().(runtime.Object), node.ModifiedIndex)
> -			// being unable to set the version does not prevent the object from being extracted
> -		}
> -		if err != nil {
> -			return err
> +		if node.Dir {
> +			h.decodeNodeList(node.Nodes, slicePtr)

I meant continue

---
Reply to this email directly or view it on GitHub:
https://github.com/GoogleCloudPlatform/kubernetes/pull/1564/files#r18598677