Skip to content

Commit

Permalink
fix crr is stuck when multi crrs specify same pod together
Browse files Browse the repository at this point in the history
Signed-off-by: joey <zchengjoey@gmail.com>
  • Loading branch information
chengjoey committed Jun 28, 2024
1 parent 8ae13b1 commit dc0fcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/containerrecreate/crr_daemon_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func enqueue(queue workqueue.Interface, obj *appsv1alpha1.ContainerRecreateReque
}

func objectKey(obj *appsv1alpha1.ContainerRecreateRequest) string {
return obj.Namespace + "/" + obj.Spec.PodName
return obj.Namespace + "/" + obj.Name
}

func (c *Controller) Run(stop <-chan struct{}) {
Expand Down

0 comments on commit dc0fcdf

Please sign in to comment.