You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Statically provision a Crossplane managed resource
Create a claim that specifies the managed resource from step 1 in its .spec.resourceRef
Wait for the claim and resource to bind.
Delete the claim created in step 2
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:
The text was updated successfully, but these errors were encountered:
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
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 tokubectl 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?
.spec.resourceRef
What environment did it happen in?
Crossplane version:
The text was updated successfully, but these errors were encountered: