Skip to content

Commit

Permalink
fix: repository LastUpdate status wasn't updated
Browse files Browse the repository at this point in the history
  • Loading branch information
paullaffitte committed Aug 13, 2024
1 parent 3d7560d commit 94e4907
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/controller/kuik/repository_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,16 @@ func (r *RepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Request)
cachedImage.Annotations = map[string]string{}
}
cachedImage.Annotations[cachedImageAnnotationForceUpdateName] = "true"
r.Patch(ctx, &cachedImage, patch)
err = r.Patch(ctx, &cachedImage, patch)
if err != nil {
return ctrl.Result{}, err
}
}

repository.Status.LastUpdate = metav1.NewTime(time.Now())
if err := r.Status().Update(ctx, &repository); err != nil {
return ctrl.Result{}, err
}
}
}

Expand Down

0 comments on commit 94e4907

Please sign in to comment.