Merge pull request #193 from myishay/patch-1

correct scan rerun command
This commit is contained in:
marceldempers 2023-04-17 10:11:44 +10:00 committed by GitHub
commit 634ba47ba1
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:
```
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>
@ -251,4 +251,4 @@ Try to apply our Wordpress MySQL which violates policies :
```
kubectl -n cms apply -f kubernetes/datree/example/cms/statefulset.yaml
```
```