Skip to content

Commit

Permalink
Merge pull request #247 from wking/stop-clobbering-completion-time
Browse files Browse the repository at this point in the history
Bug 1756461: pkg/cvo/status: Don't clobber last.CompletionTime when adding new entries
  • Loading branch information
openshift-merge-robot committed Oct 8, 2019
2 parents 0725bd5 + f81ba7a commit bdb4644
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cvo/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ func mergeOperatorHistory(config *configv1.ClusterVersion, desired configv1.Upda
}
} else {
klog.V(5).Infof("must add a new history entry completed=%t desired=%#v != last=%#v", completed, desired, last)
last.CompletionTime = &now
if last.CompletionTime == nil {
last.CompletionTime = &now
}
if completed {
config.Status.History = append([]configv1.UpdateHistory{
{
Expand Down

0 comments on commit bdb4644

Please sign in to comment.