Add validation for Container.Env

This includes backwards compat with the older "key" field.

Builds on #330
Will fix and send.  dammit.


On Wed, Jul 2, 2014 at 9:34 AM, Daniel Smith <notifications@github.com>
wrote:

> In pkg/api/types.go:
>
> >  	Name string `yaml:"name" json:"name"`
> > +	Key  string `yaml:"key,omitempty" json:"name,omitempty"`
>
> You missed a "name" inside the json field. We really need a thingy that
> sets all fields, marshals and unmarshals to catch these.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/333/files#r14467915>
> .
>