Skip to content

Commit

Permalink
Sleep values optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbcd committed Nov 21, 2024
1 parent b0d1cc9 commit 8e4d608
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eks-anywhere-common/Testers/Sysdig/sysdig-test-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data:
#!/bin/bash
echo -e "\n # Validation process started #"
kubectl wait pods -n sysdig -l app=sysdig-agent --for condition=Ready --timeout=150s
sleep 120
sleep 100
pods=($(kubectl get pod -l app=sysdig-agent -n sysdig -o jsonpath="{.items[*].metadata.name}"))
for pod in "${pods[@]}"; do
logs=$(kubectl logs -n sysdig $pod --tail -1)
Expand All @@ -19,9 +19,9 @@ data:
touch /usr/bin/risky-file # Write below bin
history -c # Try to clear bash history
# Check if the above generated event has been successfully captured
sleep 100
sleep 30
logs=$(kubectl logs -n sysdig $pod --tail -1)
if grep "Sent msgtype=31" <<< "$logs"
if grep "msgtype=31" <<< "$logs"
then
echo -e "\n # Sysdig Agent successfully captured the event #"
exit 0
Expand Down

0 comments on commit 8e4d608

Please sign in to comment.