implement - bbctl get violations <pkg>
Note: gatekeeper will likely be replaced by kyverno. So don't spend too much time on this for the MVP.
Designs
- Show closed items
Related merge requests 2
When these merge requests are accepted, this issue will be closed automatically.
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Author Contributor
@michaelmcleroy - add the relevant kubectl commands (above in the description) to get the gatekeeper violations
Edited by kevin.wilder - kevin.wilder changed the description
Compare with previous version changed the description
- kevin.wilder added bbctl label
added bbctl label
- kevin.wilder added teamXForce label
added teamXForce label
Here is the command I use to get violations from opa gatekeeper:
kubectl get constraints -o json | jq '.items[] | { "Name" : .metadata.annotations."constraints.gatekeeper/name", "Kind" : .kind, "Description" : .metadata.annotations."constraints.gatekeeper/description", "Version" : .metadata.labels."app.kubernetes.io/version", "Parameters": .spec.parameters, "Source" : .metadata.annotations."constraints.gatekeeper/source", "Docs" : .metadata.annotations."constraints.gatekeeper/docs", "Related" : .metadata.annotations."constraints.gatekeeper/related", "TotalViolations" : .status.totalViolations, "Violations" : .status.violations } | with_entries( select( .value != null ) )' > gatekeeper-report.json
You can get recent denies by using
kubectl get events
- Sameer Bhatia assigned to @sameerbhatia
assigned to @sameerbhatia
- Sameer Bhatia set weight to 3
set weight to 3
- Sameer Bhatia added ~2281 statusdoing labels
added ~2281 statusdoing labels
- Sameer Bhatia created merge request !7 (closed) to address this issue
created merge request !7 (closed) to address this issue
- Sameer Bhatia mentioned in merge request !7 (closed)
mentioned in merge request !7 (closed)
- kevin.wilder set weight to 0
set weight to 0
- kevin.wilder changed milestone to %1.21.0
changed milestone to %1.21.0
- kevin.wilder changed iteration to Big Bang Iterations Nov 16, 2021 - Nov 29, 2021
changed iteration to Big Bang Iterations Nov 16, 2021 - Nov 29, 2021
- Tunde Oladipupo changed milestone to %1.22.0
changed milestone to %1.22.0
- Ryan Thompson added priority5 label
added priority5 label
- Ryan Garcia changed iteration to Big Bang Iterations Nov 30, 2021 - Dec 13, 2021
changed iteration to Big Bang Iterations Nov 30, 2021 - Dec 13, 2021
- Ryan Garcia changed milestone to %1.23.0
changed milestone to %1.23.0
- kevin.wilder changed milestone to %1.24.0
changed milestone to %1.24.0
- kevin.wilder changed iteration to Big Bang Iterations Dec 14, 2021 - Dec 27, 2021
changed iteration to Big Bang Iterations Dec 14, 2021 - Dec 27, 2021
- Sameer Bhatia mentioned in merge request !11 (merged)
mentioned in merge request !11 (merged)
- kevin.wilder mentioned in commit b2426c3f
mentioned in commit b2426c3f
- kevin.wilder closed with merge request !11 (merged)
closed with merge request !11 (merged)
- bigbang bot removed ~2281 statusdoing labels
removed ~2281 statusdoing labels