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

fix(spaces): Allow ctrl+c while running up space init #405

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

cbuto
Copy link
Contributor

@cbuto cbuto commented Oct 30, 2023

Description of your changes

Allows using ctrl+c to interrupt the up space init command to allow stopping the installation without needing to kill the process via kill -9.

Note: this does not allow for re-initialization of the space, killing the process or using ctrl+c could result in the space being in a unstable state. It'll be a bit of work to make the up space init rerunnable/idempotent.

Fixes https://github.com/upbound/mxe/issues/257

I have:

  • Read and followed Upbound's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested

manually running up space init then using ctrl+c to exit the process while prereqs are installing.

@cbuto cbuto self-assigned this Oct 30, 2023
@Upbound-CLA
Copy link

Upbound-CLA commented Oct 30, 2023

CLA assistant check
All committers have signed the CLA.

cmd/up/space/init.go Outdated Show resolved Hide resolved
@cbuto cbuto requested a review from sttts October 30, 2023 20:25
cmd/up/main.go Show resolved Hide resolved
@sttts
Copy link
Contributor

sttts commented Oct 31, 2023

Looks great! 🚢 it.

@cbuto cbuto merged commit a293ebc into upbound:main Oct 31, 2023
6 checks 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.

3 participants