Merge pull request #121624 from jiahuif-forks/fix/cel/lazy-map-context-eval

CEL lazy map: use context for lazy evaluation.
This commit is contained in:
Kubernetes Prow Robot 2023-12-13 22:34:15 +01:00 committed by GitHub
commit f7def00e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ func (a *variableAccessor) Callback(_ *lazy.MapValue) ref.Val {
return types.NewErr("composited variable %q fails to compile: %v", a.name, a.result.Error)
}
v, details, err := a.result.Program.Eval(a.activation)
v, details, err := a.result.Program.ContextEval(a.context, a.activation)
if details == nil {
return types.NewErr("unable to get evaluation details of variable %q", a.name)
}