Skip to content

Commit

Permalink
Merge pull request #122478 from liangyuanpeng/automated-cherry-pick-o…
Browse files Browse the repository at this point in the history
…f-#121624-upstream-release-1.29

Automated cherry pick of #121624: use context for lazy evaluation.

Kubernetes-commit: eefb0054e84da3322b08b62eef45aa9be390bdd1
  • Loading branch information
k8s-publishing-bot committed Jan 10, 2024
2 parents 0065398 + 5348142 commit 037e27f
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 037e27f

Please sign in to comment.