Skip to content

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

@maxsmythe

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

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