Skip to content

improving match criteria debuggability #328

@acpana

Description

@acpana

At present, we only record results that match a constraint match criteria:

for name, constraint := range e.constraints {
cResult := constraint.matches(target, review)
if cResult != nil {
result[name] = *cResult
}
}

We can improve the debuggability of the system by A) indicating that a constraint doesn't match for a review and B) any stats on time it takes to run the match for a constraint. Both of these can help with UX efforts in shift left case scenarios like open-policy-agent/gatekeeper#2599

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