Add types for lifecycle events.

Callback has connotations and PTSD for some of us :)


On Tue, Aug 26, 2014 at 3:00 PM, Daniel Smith <notifications@github.com>
wrote:

> In pkg/api/types.go:
>
> > @@ -191,6 +191,28 @@ type Container struct {
> >  	CPU           int            `yaml:"cpu,omitempty" json:"cpu,omitempty"`
> >  	VolumeMounts  []VolumeMount  `yaml:"volumeMounts,omitempty" json:"volumeMounts,omitempty"`
> >  	LivenessProbe *LivenessProbe `yaml:"livenessProbe,omitempty" json:"livenessProbe,omitempty"
> `
> > +	Lifecycle     *Lifecycle     `yaml:"lifecycle,omitempty" json:"lifecycle,omitempty"`
> > +}
> > +
> > +// Handler defines a specific action that should be taken
> > +// TODO: merge this with liveness probing?
> > +type LifecycleHandler struct {
>
> Could also be "Callback" I suppose.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1041/files#r16745595>
> .
>