Skip to content

Commit

Permalink
set LastUpdateTime for recommend
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed Jun 7, 2022
1 parent e0faafa commit eacd7c9
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 eacd7c9

Please sign in to comment.