Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
builders: Persist build pod when DEBUG is true (PROJQUAY-3710) (#1297)
In the previous kubernetes executor the build job was persisted in DEBUG mode due to the virtual machine in the pod never exiting. This kept the job alive for users to view the debug information. The `kubernetesPodman` executor does not run the VM so it will be cleaned up due to `ttlSecondsAfterFinished` being set on the job. This change prevents the `ttlSecondsAfterFinished` field from being set when DEBUG is true, allowing the pod to stay alive to retrieve the logs.
- Loading branch information