mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
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:
commit
f7def00e66
@ -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)
|
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 {
|
if details == nil {
|
||||||
return types.NewErr("unable to get evaluation details of variable %q", a.name)
|
return types.NewErr("unable to get evaluation details of variable %q", a.name)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user