Add AfterClusterDelete Runtime Extension Hook #11658
Labels
area/runtime-sdk
Issues or PRs related to Runtime SDK
kind/feature
Categorizes issue or PR as related to a new feature.
needs-priority
Indicates an issue lacks a `priority/foo` label and requires one.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added (User Story)?
As a developer I would like to extend the cluster api functionality by creating resources before the cluster will be created and want to clean them up after the cluster was deleted.
Detailed Description
For this usecase I will only look at the currently existing BeforeClusterCreateHook and BeforeClusterDeleteHook.
Imagine I want to create a Kubernetes CRD that will create a network with a vpn Host in a cloud provider. I would use the BeforeClusterCreateHook to create the resources and block the creation until the network and vpn host are created.
If I want to clean them up if the cluster gets deleted I cant do this. I cannot use the BeforeClusterDeleteHook because the cluster is not deleted at that point and the resources are still required and there is no AfterClusterDeleteHook.
Anything else you would like to add?
No response
Label(s) to be applied
/kind feature
/area runtime-sdk
The text was updated successfully, but these errors were encountered: