Skip to content

Commit

Permalink
Add timestamp to rollout history log
Browse files Browse the repository at this point in the history
  • Loading branch information
artmello committed Oct 3, 2018
1 parent 974a978 commit cac5c61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion provider/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ func (p *Provider) updateDeployments(plans []*UpdatePlan) (updated []*k8s.Generi

var err error

annotations["kubernetes.io/change-cause"] = fmt.Sprintf("keel automated update, version %s -> %s", plan.CurrentVersion, plan.NewVersion)
timestamp := time.Now().Format(time.RFC3339)
annotations["kubernetes.io/change-cause"] = fmt.Sprintf("keel automated update, version %s -> %s [%s]", plan.CurrentVersion, plan.NewVersion, timestamp)

resource.SetAnnotations(annotations)

Expand Down

0 comments on commit cac5c61

Please sign in to comment.