Passing pod UUID to Kubelet.

We need UUID to indicate the instance of a Pod to make restart work. 
TL;DR - The state of the world is a bit messed up.  Until we fix that, we
need something.


On Sun, Sep 7, 2014 at 11:09 PM, Daniel Smith <notifications@github.com>
wrote:

> In pkg/registry/pod/storage.go:
>
> > @@ -66,8 +66,9 @@ func NewRegistryStorage(config *RegistryStorageConfig) apiserver.RESTStorage {
> >
> >  func (rs *RegistryStorage) Create(obj interface{}) (<-chan interface{}, error) {
> >  	pod := obj.(*api.Pod)
> > +	pod.DesiredState.Manifest.UUID = uuid.NewUUID().String()
>
> I still don't understand why we're adding a UUID field to the *manifest*
> only. If we're making a UUID field in addition to our current ID field, it
> should go in JSONBase. But then one wonders what our current ID field is
> doing.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1199/files#r17222916>
> .
>