Skip to content

Remove the notion of "Enforcement Action" from the engine interface #298

Description

@maxsmythe

Currently, Engine is responsible for returning an enforcement action. This was originally intended to allow for the possibility of dynamic enforcement actions, but that would be incompatible with the capabilities of the CEL KEP. As such, it should be removed.

enforcementAction, found, err := unstructured.NestedString(constraint.Object, "spec", "enforcementAction")
if err != nil {
return nil, err
}
if !found {
enforcementAction = apiconstraints.EnforcementActionDeny
}
result.EnforcementAction = enforcementAction

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions