We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e1770 commit 2da4965Copy full SHA for 2da4965
internal/cmd/controller/imagescan/gitcommit_job.go
@@ -219,8 +219,9 @@ func (j *GitCommitJob) cloneAndReplace(ctx context.Context) {
219
if interval == nil || interval.Seconds() == 0.0 {
220
interval = &DefaultInterval
221
}
222
- gitrepo.Status.LastSyncedImageScanTime = metav1.NewTime(time.Now())
223
+ now := metav1.NewTime(time.Now())
224
+ gitrepo.Status.LastSyncedImageScanTime = &now
225
// update gitrepo status
226
condition.Cond(fleet.ImageScanSyncCondition).SetError(&gitrepo.Status, "", nil)
227
err = retry.RetryOnConflict(retry.DefaultRetry, func() error {
0 commit comments