Describe the issue
Currently when you run a Pod in Kubernetes with Kestra plugin io.kestra.plugin.kubernetes.PodCreate
and when the Pod has been deleted in Kubernetes during the execution, then the Kestra flow task goes into a loop of checking for non existant pod, producing continious logs as follows:
No log since '2024-08-05T08:39:54.718424453Z', reconnecting
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods \"podname-fddb3\" not found","reason":"NotFound","details":{"name":"podname-fddb3","kind":"pods"},"code":404}
Kestra task should instead gracefully fail.
Environment
- Kestra Version: 0.17.16
- Operating System (OS/Docker/Kubernetes): Kubernetes