Skip to content

Commit

Permalink
add creating label when replacing pod created
Browse files Browse the repository at this point in the history
  • Loading branch information
wu8685 committed Oct 29, 2024
1 parent e559b0b commit d022161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/collaset/synccontrol/replace.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (r *RealSyncControl) replaceOriginPods(
ownedIDs[newPodId].Remove(podcontext.JustCreateContextDataKey)
}
newPod.Labels[appsv1alpha1.PodReplacePairOriginName] = originPod.GetName()
newPod.Labels[appsv1alpha1.PodCreatingLabel] = strconv.FormatInt(time.Now().UnixNano(), 10)
newPodContext.Put(podcontext.RevisionContextDataKey, replaceRevision.Name)
// create pvcs for new pod
err = r.pvcControl.CreatePodPvcs(ctx, instance, newPod, resources.ExistingPvcs)
Expand Down

0 comments on commit d022161

Please sign in to comment.