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

feat: improve pool deletion #21

Merged
merged 1 commit into from
Oct 25, 2023
Merged

feat: improve pool deletion #21

merged 1 commit into from
Oct 25, 2023

Conversation

bavarianbidi
Copy link
Member

No description provided.

Signed-off-by: Mario Constanti <[email protected]>
return r.handleUpdateError(ctx, pool, err)
}

_, err = updatePool(garmClient, pool, image)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line is esential and new.

in the past, we've just updated the pool-cr and then the pool got scaled down.
With this implementation we immediately scaling the pool down to zero and disable the pool as well.

And after that we try to delete all the corresponding runners.

@bavarianbidi bavarianbidi merged commit 2be4b2f into main Oct 25, 2023
1 check passed
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.

2 participants