Skip to content

Commit a6c1839

Browse files
authored
Merge pull request #55766 from bergerhoffer/OSDOCS-1585-update
OSDOCS-1585: Changing query and fixing example output
2 parents 5b0af57 + 38205c9 commit a6c1839

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

modules/security-context-constraints-psa-alert-eval.adoc

+4-6
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ $ oc adm must-gather -- /usr/bin/gather_audit_logs
2626
+
2727
[source,terminal]
2828
----
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' \
3131
| sort | uniq -c
3232
----
3333
+
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.
3535
+
3636
.Example output
3737
[source,text]
3838
----
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
4240
----

0 commit comments

Comments
 (0)