From 38701c461fcf3436136d8f8473cf3b3cb6a8ce3c Mon Sep 17 00:00:00 2001 From: Josh Carp Date: Mon, 8 Nov 2021 00:18:34 -0500 Subject: [PATCH] feat(controller): Log expression context for conditional retries. Signed-off-by: Josh Carp --- workflow/controller/operator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/workflow/controller/operator.go b/workflow/controller/operator.go index 96d9dbab8699..f8d1edafd29c 100644 --- a/workflow/controller/operator.go +++ b/workflow/controller/operator.go @@ -791,6 +791,7 @@ func (woc *wfOperationCtx) processNodeRetries(node *wfv1.NodeStatus, retryStrate if retryStrategy.Expression != "" && len(node.Children) > 0 { localScope := buildRetryStrategyLocalScope(node, woc.wf.Status.Nodes) scope := env.GetFuncMap(localScope) + woc.log.WithField("node", node.Name).Infof("evaluating retry conditional with scope %s", localScope) res, err := expr.Eval(retryStrategy.Expression, scope) if err != nil { return nil, false, err