WIP: Set uid during object create

Still need to add some unit tests.

And the correct behavior in v1beta3 and onwards is all of those should error if omitted.

----- Original Message -----
> > @@ -69,6 +69,8 @@ func (rs *REST) Create(ctx api.Context, obj
> > runtime.Object) (<-chan apiserver.RE
> >  		return nil, fmt.Errorf("id is required: %#v", obj)
> >  	}
> >  	endpoints.CreationTimestamp = util.Now()
> > +	endpoints.UID = util.NewUUID().String()
> 
> To elaborate, if Name is omitted:
> 
> replicationController - assign to random UUID
> pod - assign to pod.DesiredState.Manifest.UUID, which if omitted is a random
> UUID
> service - we error if omitted
> minion - we error if omitted
> event - we do no validation at all (need an issue for this i think)
> 
> 
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/GoogleCloudPlatform/kubernetes/pull/2333/files#r20307465