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
At present, we only record results that match a constraint match criteria:
frameworks/constraint/pkg/client/template_client.go
Lines 135 to 140 in 3f237e2
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