glasskube / glasskube

🧊 The next generation Package Manager for Kubernetes 📦 Featuring a GUI and a CLI. Glasskube packages are dependency aware, GitOps ready and can get automatic updates via a central public package repository.
https://glasskube.dev
Apache License 2.0
2.99k stars 180 forks source link

Add confirmation to `bootstrap` command #719

Closed kosmoz closed 5 months ago

kosmoz commented 5 months ago

Is your feature request related to a problem? Please describe. The bootstrap command starts it's work right away, which can be dangerous if a user has the wrong kubeconfig context selected.

Describe the solution you'd like Before doing anything, bootstrap should ask the user for confirmation, the prompt should include the current context name. For example:

Glasskube will be installed in context [name-of-current-context].
Continue? (Y/n)

There should also be a --yes flag, that skips this step.

If the bootstrap process is triggered via the UI, the confirmation prompt MUST NOT be shown!

bishalbera commented 5 months ago

@kosmoz Can I work on this?