rancher / rancher

Complete container management platform

Home Page:http://rancher.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RFE] Cloud Credentials can be deleted even if there are clusters using them

DovydasNavickas opened this issue · comments

Is your feature request related to a problem? Please describe.

I had S3-Compatible Cloud Credentials and I deleted them, thinking that there will be a warning if the cluster is using them. Unfortunately, after credentials were deleted, I found this error on the cluster:

failed to lookup etcdSnapshotCloudCredentialName: secrets "cc-b22nx" not found, refreshing etcd create state

Describe the solution you'd like

When trying to delete the Cloud Credentials a warning that there is a cluster using them would be shown.

Describe alternatives you've considered

Manually checking the clusters for the credential. That maybe fine when there are only a couple of clusters, but at some point this becomes very tedious or just "delete and what breaks" kind of situation.

Additional context
Add any other context or screenshots about the feature request here.

This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 14 days. Thank you for your contributions.