mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 05:46:16 +00:00
use context for lazy evaluation.
This commit is contained in:
parent
74fefd877f
commit
4fa3247a61
@ -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