Remove vestigal err check from CEL admission controller.

Validate no longer returns an error.
This commit is contained in:
Ben Luddy
2023-03-09 16:13:12 -05:00
parent c67953a2d0
commit 1319217600

View File

@@ -329,12 +329,6 @@ func (c *celAdmissionController) Validate(
}
validationResult := bindingInfo.validator.Validate(ctx, versionedAttr, param, celconfig.RuntimeCELCostBudget)
if err != nil {
// runtime error. Apply failure policy
wrappedError := fmt.Errorf("failed to evaluate CEL expression: %w", err)
addConfigError(wrappedError, definition, binding)
continue
}
for i, decision := range validationResult.Decisions {
switch decision.Action {