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

Add AfterClusterDelete Runtime Extension Hook #11658

Open
simonostendorf opened this issue Jan 10, 2025 · 1 comment
Open

Add AfterClusterDelete Runtime Extension Hook #11658

simonostendorf opened this issue Jan 10, 2025 · 1 comment
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.

Comments

@simonostendorf
Copy link

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

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. area/runtime-sdk Issues or PRs related to Runtime SDK 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. labels Jan 10, 2025
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If CAPI contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants