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

Prevent deletion of certain resources when uninstalling an instance #1785

Open
bearpaws opened this issue Apr 15, 2021 · 0 comments
Open

Prevent deletion of certain resources when uninstalling an instance #1785

bearpaws opened this issue Apr 15, 2021 · 0 comments

Comments

@bearpaws
Copy link

What would you like to be added:

For certain resources created by an operator during instance installation, provide a way to optionally retain those resources when the instance is uninstalled.

During re-installation of an instance with the same name, KUDO should detect that the resource already exists and not overwrite it.

This could, for example, be controlled via an annotation on the resource:

kind: Secret
metadata:
  annotations:
    "kudo.dev/deletion-policy": "retain"

Why is this needed:

For example, an operator may install a database and generate a random Secret that contains the credentials for the database. The database is persisted on a PVC. When the instance is uninstalled, KUDO will not delete the PVC but will delete the Secret. If attempting to reuse the retained PVC, the credentials are lost.

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

No branches or pull requests

1 participant