Skip to content

Commit

Permalink
feat: release-1.6 logs for priceline
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Jan 12, 2024
1 parent 511f434 commit 502be54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rollout/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
}
Expand Down

0 comments on commit 502be54

Please sign in to comment.