diff --git a/rollout/controller.go b/rollout/controller.go index 95dbe87437..e73115d6c8 100644 --- a/rollout/controller.go +++ b/rollout/controller.go @@ -174,6 +174,11 @@ func NewController(cfg ControllerConfig) *Controller { client: cfg.KubeClientSet, resyncPeriod: cfg.ResyncPeriod, enqueueAfter: func(obj interface{}, duration time.Duration) { + ro := unstructuredutil.ObjectToRollout(obj) + if ro != nil { + logCtx := logutil.WithRollout(ro) + logCtx.Info("rollout enqueue due to pod restart") + } controllerutil.EnqueueAfter(obj, duration, cfg.RolloutWorkQueue) }, }