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

Cascading delete for ServiceInstances #5180

Closed
brendandobbs opened this issue Aug 2, 2019 · 5 comments
Closed

Cascading delete for ServiceInstances #5180

brendandobbs opened this issue Aug 2, 2019 · 5 comments
Assignees
Labels
area/service-management Issues or PRs related to service management

Comments

@brendandobbs
Copy link
Contributor

brendandobbs commented Aug 2, 2019

Description

When a user deletes a ServiceInstance we would assume that they expect the related ServiceBindings and ServiceBindingUsages to be deleted also. Currently the user needs to delete the ServiceBindings before the ServiceInstances as able to deleted (warning message: "All associated ServiceBindings must be removed before this ServiceInstance can be deleted")

Reasons

Cascading delete of a ServiceInstance would improve the users experience.

Acceptance Criteria

  • show idea (and try to make it accepted, could be under alphaFeature) to SC and implement feature on PR,
  • under "delete" button when popup displayed, allow user to select: "delete All" with description what will be deleted: SB, SBU.
  • feature contributed to upstream SC master

Solution proposal:

  • Provide a feature in the Service Catalog istself, where user can flag ServiceInstance during creation/update, and when deleted it will not block removal if SB exists, but will just delete all related SBs and when they are out, SI will be just deleted by SC (that functionality is already in SC)

Next steps:

  • popup with warning that all SBUs will be deleted
  • when creating SI we need to add "check" cascading delete ON
@brendandobbs brendandobbs added area/service-management Issues or PRs related to service management quality/devx labels Aug 2, 2019
@PK85 PK85 added this to the Backlog_Gopher milestone Aug 2, 2019
@PK85 PK85 modified the milestones: Backlog_Gopher, Sprint_Gopher_25 Sep 3, 2019
@mszostok
Copy link
Contributor

mszostok commented Sep 3, 2019

treat that task as base groud

  • documentation about the new spec (e.g. mention backward compatibility) (in Service Catalog repo)
  • implement business logic (change CRD + instance_controller)
  • add proper message in status info about new action (deleting SB in background)
  • add integration tests for a new logic
  • create a task for our Kyma UI (discuss with @kwiatekus)

@klaudiagrz klaudiagrz modified the milestones: Sprint_Gopher_25, Sprint_Gopher_26 Sep 16, 2019
@adamwalach adamwalach assigned adamwalach and unassigned adamwalach Sep 18, 2019
@piotrmiskiewicz piotrmiskiewicz self-assigned this Sep 20, 2019
@piotrmiskiewicz
Copy link
Member

After the discussion with @PK85 we decided to have a feature flag which enables cascading deletion for all service instances.

@PK85 PK85 modified the milestones: Sprint_Gopher_26, Sprint_Gopher_27 Sep 30, 2019
@PK85
Copy link
Contributor

PK85 commented Sep 30, 2019

When finished, create an issue to use in Kyma istelf.

@klaudiagrz klaudiagrz modified the milestones: Sprint_Gopher_27, Sprint_Gopher_28 Oct 14, 2019
@PK85 PK85 modified the milestones: Sprint_Gopher_28, Sprint_Gopher_29 Oct 28, 2019
@PK85 PK85 closed this as completed Nov 11, 2019
@PK85
Copy link
Contributor

PK85 commented Nov 11, 2019

@piotrmiskiewicz prepare yourself for 5 min demo during sprint review.

@klaudiagrz klaudiagrz reopened this Nov 12, 2019
@klaudiagrz klaudiagrz modified the milestones: Sprint_Gopher_29, Sprint_Gopher_30 Nov 12, 2019
@mszostok
Copy link
Contributor

mszostok commented Nov 17, 2019

PR was merged: kubernetes-retired/service-catalog#2711

issue for enabling that in Kyma: #6140 (comment)

@PK85 PK85 closed this as completed Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/service-management Issues or PRs related to service management
Projects
None yet
Development

No branches or pull requests

7 participants