[go: nahoru, domu]

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

Statically provisioned resources should be unbound when their claim is deleted #25

Closed
negz opened this issue Sep 14, 2019 · 1 comment · Fixed by #70
Closed

Statically provisioned resources should be unbound when their claim is deleted #25

negz opened this issue Sep 14, 2019 · 1 comment · Fixed by #70
Labels
bug Something isn't working

Comments

@negz
Copy link
Member
negz commented Sep 14, 2019

What happened?

The resource claim reconciler supports either dynamically or statically provisioning managed resources. The former involves using a resource class to create a new managed resource, while the latter involves binding to an existing resource.

A resource claim is the Kubernetes owner reference of any managed resource it dynamically provisions, but not the owner reference of any statically provisioned managed resource it later binds to. When a resource claim is deleted its underlying managed resource will only be deleted if it was dynamically provisioned and the user did not supply the --cascade option to kubectl delete.

While it is possible to delete a resource claim without deleting its managed resource, the resource claim reconciler doesn't currently update the managed resource in this scenario. It remains in binding state "bound", with a claim reference to the (now deleted) claim that it was bound to. This is probably not the behaviour we want.

How can we reproduce it?

  1. Statically provision a Crossplane managed resource
  2. Create a claim that specifies the managed resource from step 1 in its .spec.resourceRef
  3. Wait for the claim and resource to bind.
  4. Delete the claim created in step 2
  5. Observe that the managed resource created in step 1 continues to be "bound" to the now deleted resource claim.

What environment did it happen in?

Crossplane version:

@negz negz added the bug Something isn't working label Sep 14, 2019
@negz
Copy link
Member Author
negz commented Sep 14, 2019

Possibly some crossover with #21.

@negz negz changed the title Managed resources should be unbound when their claim is deleted Statically provisioned resources should be unbound when their claim is deleted Nov 1, 2019
@negz negz closed this as completed in #70 Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant