Skip to content

Commit 037e27f

Browse files
Merge pull request #122478 from liangyuanpeng/automated-cherry-pick-of-#121624-upstream-release-1.29
Automated cherry pick of #121624: use context for lazy evaluation. Kubernetes-commit: eefb0054e84da3322b08b62eef45aa9be390bdd1
2 parents 0065398 + 5348142 commit 037e27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/admission/plugin/cel/composition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (a *variableAccessor) Callback(_ *lazy.MapValue) ref.Val {
178178
return types.NewErr("composited variable %q fails to compile: %v", a.name, a.result.Error)
179179
}
180180

181-
v, details, err := a.result.Program.Eval(a.activation)
181+
v, details, err := a.result.Program.ContextEval(a.context, a.activation)
182182
if details == nil {
183183
return types.NewErr("unable to get evaluation details of variable %q", a.name)
184184
}

0 commit comments

Comments
 (0)