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(cli): clean up clusteroles/bindings, config.json, add prompt #2301

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

rohantmp
Copy link
Contributor

@rohantmp rohantmp commented Nov 29, 2024

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix
ENG-5254

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves ENG-5254
resolves ENG-5244

What else do we need to know?
vcluster platform destroy will now prompt the user to type "delete" to confirm destruction, unless the --non-interactive flag is passed

vcluster platform destroy now properly cleans up config.json, and a few clusterroles/bindings it missed before

prompt example:
image

Signed-off-by: Rohan CJ <rohantmp@gmail.com>
Copy link

netlify bot commented Nov 29, 2024

Deploy Preview for vcluster-docs canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 524671e
🔍 Latest deploy log https://app.netlify.com/sites/vcluster-docs/deploys/674d8d3be54796000885c28a

Signed-off-by: Rohan CJ <rohantmp@gmail.com>
cmd/vclusterctl/cmd/platform/destroy.go Outdated Show resolved Hide resolved
cmd/vclusterctl/cmd/platform/destroy.go Outdated Show resolved Hide resolved
pkg/cli/config/config.go Outdated Show resolved Hide resolved
pkg/cli/config/config.go Outdated Show resolved Hide resolved
Copy link
Contributor

@johannesfrey johannesfrey left a comment

Choose a reason for hiding this comment

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

With @ThomasK33 suggestions

Signed-off-by: Rohan CJ <rohantmp@gmail.com>
@rohantmp
Copy link
Contributor Author

rohantmp commented Dec 2, 2024

Comments accepted and changes pushed. Thanks :)

@ThomasK33 ThomasK33 merged commit e9d61cb into loft-sh:main Dec 2, 2024
61 checks passed
@rohantmp rohantmp deleted the destroyCommand branch December 2, 2024 10:55
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