You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/cvo/availableupdates: Split 'At' into LastAttempt and LastSyncOrConfigChange
The previous At had been tracking the most recent attempt, regardless
of success. With this commit, we rename it to the more explicit
LastAttempt and add godocs explaining the intended semantics.
Also grow a LastSyncOrConfigChange sibling, tracking the time since
the last success (or since the configured upstream had been changed).
This will make it more convenient to alert when the slice of available
updates is stale, although that alert itself and the metric that feeds
it will come from follow-up work [1].
Setting u.LastSyncOrConfigChange from optr.availableUpdates in the
else branch preserves any existing timestamp if the new status did not
trigger a reset.
[1]: #357
0 commit comments