Skip to content

Commit

Permalink
Merge pull request #350 from qmhu/rec-updatetime
Browse files Browse the repository at this point in the history
bugfix:Set LastUpdateTime for recommend
  • Loading branch information
qmhu authored Jun 7, 2022
2 parents 4ba0b2c + eacd7c9 commit a0f1148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/analytics/analytics_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ func (c *Controller) ExecuteMission(ctx context.Context, wg *sync.WaitGroup, ana
value = string(valueBytes)

recommendation.Status.RecommendedValue = value
recommendation.Status.LastUpdateTime = &timeNow
if existingRecommendation != nil {
klog.Infof("Update recommendation %s", klog.KObj(recommendation))
if err := c.Update(ctx, recommendation); err != nil {
Expand Down

0 comments on commit a0f1148

Please sign in to comment.