Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent runner controller from recreating runner pod when terminated externally #1851

Merged
merged 1 commit into from Oct 13, 2022

Conversation

mumoshu
Copy link
Collaborator

@mumoshu mumoshu commented Sep 24, 2022

While I was running E2E tests, I discovered an issue which resulted in some (unexpectedly recreated) runners grabbing jobs from GitHub Actions and being killed prematurely by ARC, when the pod was deleted directly, not via the parent runner resource.

You don't usually delete runner pods directly. Neither deletion of RunnerDeployment, Runner, nor RunnetSet triggers this scenario. However, this change should be useful when the pods can get deleted externally, for example, as a part of cluster-autoscaler's node termination process.

This was tested locally in my local branch that contains both this and #1759.

@mumoshu mumoshu changed the title Prevent runner controller from recreating runner pod when pod was terminated externally Prevent runner controller from recreating runner pod when terminated externally Sep 25, 2022
@mumoshu mumoshu merged commit 710e2fb into master Oct 13, 2022
@mumoshu mumoshu deleted the mark-parent-runner-deletion branch October 13, 2022 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants