dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Make Provider Preset Deletion Possible

Open cschieder opened this issue 3 years ago • 5 comments

Why?

Not being able to delete provider presets and having no information as to why it's not possible is confusing and the fact that deletion is not possible will cause a build up of unused useless provider presets

How?

  • Make a check "is any cluster using this? -> No -> Allow Deletion"
  • (if possible) "is any cluster using this? -> Yes -> Give migration to another preset option -> Offer to delete preset after migration" OR
  • is any cluster using this? -> No -> Grey out deletion option and show reason as to why it's not possible in a tooltip OR make it possible to open a delete modal and say why it's not possible in the modal, with both options ideally showing which clusters use the preset so the user can manually change the clusters and be able to delete the provider preset after making it unused

cschieder avatar Jan 11 '22 08:01 cschieder

The main issue here is with the API and how presets are handled after creation and when they are used by the cluster. The issue should be created in the API. From the UI side using the delete endpoint is extremely simple, API on the other hand will be very complex to handle.

floreks avatar Jan 11 '22 09:01 floreks

We are not sure if we need to keep the connection between cluster or template with the preset @shaase-ctrl we would like to discuss it next sig UI/API meeting

zreigz avatar Feb 01 '22 12:02 zreigz

We should disconnect a preset from having multiple providers, then we can start with referencing which preset is used in which project

csengerszabo avatar Feb 15 '22 12:02 csengerszabo

Issues go stale after 90d of inactivity. After a furter 30 days, they will turn rotten. Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

kubermatic-bot avatar Mar 14 '24 12:03 kubermatic-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

kubermatic-bot avatar Apr 13 '24 12:04 kubermatic-bot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

kubermatic-bot avatar May 13 '24 12:05 kubermatic-bot

@kubermatic-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

kubermatic-bot avatar May 13 '24 12:05 kubermatic-bot