File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,15 @@ $ oc adm must-gather -- /usr/bin/gather_audit_logs
26
26
+
27
27
[source,terminal]
28
28
----
29
- $ zgrep -h pod-security.kubernetes.io/audit-violations must-gather.local.<archive _id >/quay* /audit_logs/kube-apiserver/*log.gz \
30
- | jq -r 'select((.annotations["pod-security.kubernetes.io/audit-violations"] != null) and (.objectRef.resource=="pods")) | .objectRef.namespace + " " + .objectRef.name + " " + .objectRef.resource ' \
29
+ $ zgrep -h pod-security.kubernetes.io/audit-violations must-gather.local.<archive _id >/< image _digest_id > /audit_logs/kube-apiserver/*log.gz \
30
+ | jq -r 'select((.annotations["pod-security.kubernetes.io/audit-violations"] != null) and (.objectRef.resource=="pods")) | .objectRef.namespace + " " + .objectRef.name' \
31
31
| sort | uniq -c
32
32
----
33
33
+
34
- Replace `must-gather.local. <archive_id>` with the actual directory name .
34
+ Replace `<archive_id>` and `<image_digest_id>` with the actual path names .
35
35
+
36
36
.Example output
37
37
[source,text]
38
38
----
39
- 15 ci namespace-ttl-controller deployments
40
- 1 ci-op-k5whzrsh rpm-repo-546f98d8b replicasets
41
- 1 ci-op-k5whzrsh rpm-repo deployments
39
+ 1 test-namespace my-pod
42
40
----
You can’t perform that action at this time.
0 commit comments