Skip to content

Commit

Permalink
use context for lazy evaluation.
Browse files Browse the repository at this point in the history
Kubernetes-commit: 865f214fe534c90ddfa8010a182c5f4205f05033
  • Loading branch information
jiahuif authored and k8s-publishing-bot committed Oct 30, 2023
1 parent 0065398 commit 5348142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/admission/plugin/cel/composition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5348142

Please sign in to comment.