Audit constraint violations via status
Read offending resources from a constraint's audit status without re-scanning
kubectl get k8srequiredlabels <name> -o jsonpath='{.status.totalViolations} {range .status.violations[*]}{"\n"}{.kind}/{.name}: {.message}{end}'
- tool
- opa-gatekeeper3 commands
More opa-gatekeeper commands
-
gator test -f policy/ && gator verify ./suiteValidate templates+constraints against fixtures with no cluster; modern: shift-left in CI
-
kubectl get constrainttemplates && kubectl get constraints -AEnumerate ConstraintTemplates and every instantiated constraint kind across namespaces