Skip to content

Commit

Permalink
Merge pull request #334 from zk-123/patch-2
Browse files Browse the repository at this point in the history
fix(status): remove repeat code
  • Loading branch information
SOF3 authored Jul 19, 2024
2 parents 1e10635 + 80e8f73 commit 7a9636a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/controllers/status/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,19 +430,6 @@ func (s *StatusController) reconcile(
collectedStatus.SetAnnotations(map[string]string{common.LatestReplicasetDigestsAnnotation: rsDigestsAnnotation})
}

if existingStatus == nil {
collectedStatus.GetLastUpdateTime().Time = time.Now()
_, err = collectedstatusadapters.Create(
ctx,
s.fedClient.CoreV1alpha1(),
collectedStatus,
metav1.CreateOptions{},
)
if err != nil {
keyedLogger.Error(err, "Failed to set annotations about replicas")
}
}

if existingStatus == nil {
collectedStatus.GetLastUpdateTime().Time = time.Now()
_, err = collectedstatusadapters.Create(
Expand Down

0 comments on commit 7a9636a

Please sign in to comment.