Adds Persistent Disk volume type.

Implements a GCEPersistentDisk volume type.

Persistent Disks can now be specified in pod manifests and will be mounted and exposed to containers.



I would poke a stick at the mailing lists before going off to fix it.  They
may have a reason...


On Mon, Aug 18, 2014 at 3:27 PM, Daniel Smith <notifications@github.com>
wrote:

> In pkg/api/v1beta1/types.go:
>
> > @@ -85,6 +85,9 @@ type VolumeSource struct {
> >  	HostDirectory *HostDirectory `yaml:"hostDir" json:"hostDir"`
> >  	// EmptyDirectory represents a temporary directory that shares a pod's lifetime.
> >  	EmptyDirectory *EmptyDirectory `yaml:"emptyDir" json:"emptyDir"`
> > +	// GCEPersistentDisk represents a GCE Disk resource that is attached to a
> > +	// kubelet's host machine and then exposed to the pod.
> > +	GCEPersistentDisk *GCEPersistentDisk `yaml:"persistentDisk" json:"persistentDisk"`
>
> Hm, looks like inlined maps just plain don't work at all:
> http://play.golang.org/p/NnwTh9KI5r
>
> I'd say this is a bug in the json package. Should we fork it? Make a patch
> and try to get accepted upstream? I don't mind making the code changes to
> support this.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/861/files#r16386357>
> .
>