st-tech / gatling-operator

Automating distributed Gatling load testing using Kubernetes operator
MIT License
68 stars 21 forks source link

Fix repeated Gatling CR not-found errors issue #10

Closed yokawasa closed 2 years ago

yokawasa commented 2 years ago

Description

fix for the issue https://github.com/st-tech/gatling-operator/issues/8

Tests

I confirm that Gatling CR not-found errors occurs repeatedly after deleting a Gatling CR.

Suppose I have a Gatling CR named gatling-sample01 in the cluster, I delete it like this

kubectl delete gatling gatling-sample01 -n <your namespace>

Then, check the log of gatling-operator manager like this. I don't see many gatling-sample01 not found error any more

export GATLING_MANAGER_POD=$(kubectl get pods -n gatling-system -o 'jsonpath={.items[0].metadata.name}')
kubectl logs $GATLING_MANAGER_POD -n gatling-system -c manager -f
yokawasa commented 2 years ago

@tmrekk121 thanks for the review! I go ahead to merge the PR