Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Created January 9, 2025 04:51
Show Gist options
  • Save ihcsim/84279771143e03be6d31446af66e6d05 to your computer and use it in GitHub Desktop.
Save ihcsim/84279771143e03be6d31446af66e6d05 to your computer and use it in GitHub Desktop.
// Dispatch implements generic.Dispatcher.
func (c *dispatcher) Dispatch(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces, hooks []PolicyHook) error {
// ...
validationResults = append(validationResults,
hook.Evaluator.Validate(
ctx,
matchResource,
versionedAttr,
p,
namespace,
celconfig.RuntimeCELCostBudget,
authz,
),
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment