st-tech / gatling-operator

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

Changes to fix container exit status #82

Closed cin closed 10 months ago

cin commented 1 year ago

Description

The Gatling exit status was getting overwritten by another command running after Gatling's process finished. This PR ensure the GATLING_EXIT_STATUS is returned. This exposed another issue where Kubernetes re-runs failed jobs. In this case, we actually don't want failed jobs to re-run. In order to fix this, I set the BackoffLimit to 0 so the pods won't get recreated.

Resolves #81

itiB commented 10 months ago

@cin Hi, cin. Sorry for the late merging. Thank you for your contribution! Have a good Gatling life:+1: