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.



http://play.golang.org/p/SAQKFYbllc


On Mon, Aug 18, 2014 at 2:57 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"`
>
>  Or maybe there is a way to say "save all unknown fields in this
> map[string]interface{}" but I don't know how.
>
> I haven't tested it, but I'd expect making a Extra map[string]interface{}
> `json:",inline" yaml:",inline"` to work?
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/861/files#r16384935>
> .
>