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

[ENH] - Add protections to prevent accidental deletion of certain resources #2829

Open
Adam-D-Lewis opened this issue Nov 5, 2024 · 0 comments

Comments

@Adam-D-Lewis
Copy link
Member

Feature description

Sometimes small changes result in destruction of the whole k8s cluster (see 2818). This should be prevented. I see various options for doing so:

  1. add a prevent_destroy to certain objects e.g. Kubernetes cluster. We may be able to add these dynamically in python? I think that's the only way this option works b/c otherwise nebari destroy won't work until prevent_destroy is removed.
  2. Analyze each terraform plan and not proceed with the apply if certain resources are destroyed unless desired.

Value and/or benefit

Help prevent catastrophic loss on production Nebari clusters

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New 🚦
Development

No branches or pull requests

1 participant