correct scan rerun command

This commit is contained in:
Yishay Mendelsohn 2023-03-16 10:52:38 +02:00 committed by GitHub
parent 04d1d86f12
commit 3291f3edbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ kubectl -n cms get all
Rerun our scan: Rerun our scan:
``` ```
kubectl get job "scan-job" -n datree -o json | jq 'del(.spec.selector)' | jq 'del(.spec.template.metadata.labels)' | kubectl replace --force -f - kubectl delete jobs/scan-job -n datree; kubectl create job --from=cronjob/scan-cronjob scan-job -n datree
``` ```
Now we can follow the dashboard, to check our `namespace` for policy issues and start fixing them. </br> Now we can follow the dashboard, to check our `namespace` for policy issues and start fixing them. </br>