Add validation for Container.Env

This includes backwards compat with the older "key" field.

Builds on #330
Fixed


On Tue, Jul 1, 2014 at 5:53 PM, Daniel Smith <notifications@github.com>
wrote:

> In pkg/api/types.go:
>
> >  	Name string `yaml:"name" json:"name"`
> > +	Key   string `yaml:"name,omitempty" json:"name,omitempty"`
>
> gofmt? Also, it's the "name" in the yaml: and json: sections that
> determines how it gets marshaled, so this isn't doing what you want it to.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/333/files#r14436512>
> .
>