Adding metadata for fired trigger to the deployment

My other comment supersedes this - whatever structure records the act of deployment (and we need to make a convincing case it's not an annotation), should be copied exactly into this structure.


> On Oct 30, 2014, at 7:48 PM, Paul Morie <notifications@github.com> wrote:
> 
> In pkg/deploy/api/types.go:
> 
> > @@ -12,6 +13,11 @@ type Deployment struct {
> >  	Strategy           DeploymentStrategy             `json:"strategy,omitempty" yaml:"strategy,omitempty"`
> >  	ControllerTemplate api.ReplicationControllerState `json:"controllerTemplate,omitempty" yaml:"controllerTemplate,omitempty"`
> >  	Status             DeploymentStatus               `json:"status,omitempty" yaml:"status,omitempty"`
> > +	// The trigger that led to the creation of this deployment resource. If no trigger
> > +	// is specified, then the deployment was likely created as a result of an
> > +	// explicit client request to create a new deployment resource.
> > +	// Named FiredTrigger to be consistent with the corresponding attribute in deployment config
> > +	FiredTrigger DeploymentTriggerDetails `json:"firedTrigger,omitempty" yaml:"firedTrigger,omitempty"`
> +1, 'Trigger' plz @abhgupta
> 
> —
> Reply to this email directly or view it on GitHub.