Skip to content

Set the owner of Kubernetes runner pods to ensure correct cleanup

What does this MR do?

Use Kubernetes Owner References feature to ensure CI pods are cleaned up when the controller pod is stopped or crashes.

Why was this MR needed?

Without use of this feature, CI pods hang indefinitely when the controller pod is stopped. See #25378 (closed)

Are there points in the code the reviewer needs to double check?

N/A

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

#25378 (closed)

Merge request reports