Open ykakarap opened 2 years ago
@ykakarap: The label(s) kind/runtime-sdk
cannot be applied, because the repository doesn't have them.
/area runtime-sdk
/cc @fabriziopandini @sbueringer
I think we should also discuss how we surface the various "blocking states" of reconcileDelete of the regular controller (deleting MDs/ControlPlane/InfraCluster/ ...) so that all our "delete" condition(s) fit nicely together
I'm not sure if we need an owner for a condition. If the condition is written by different controllers at different times I wonder if that's good enough (topology controller until the BeforeClusterDelete hook is successfully called, cluster controller afterwards).
One comment, considering that reconcileDelete of the regular controller is deleting MD/ControlPlane/InfraCluster this is essentially "delete" reconciliation of the objects of the managed topology. Even if we implemented that before ClusterClass and it works with non-classy clusters as well.
/triage accepted
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/lifecycle frozen
This issue has not been updated in over 1 year, and should be re-triaged.
You can:
/triage accepted
(org members only)/close
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/
/remove-triage accepted
/triage accepted
/kind cleanup /priority important-longterm
Details:
This issue is to discuss how to surface that a cluster deletion is blocked when the
BeforeClusterDelete
hook blocks the deletion of a process with a blocking response.We have 2 options: 1) Use
TopologyReconciled
condition - Since only managed clusters are affected byBeforeClusterDelete
hook we can use theTopologyReconciled
condition to surface if a cluster deletion is blocked. Reason will beLifecycleHookBlocking
. This will be consistent with how the other lifecycle hook blocking cases are surfaced.2) Use a separate condition - Since
TopologyReconciled
condition reflects if the underlying objects reflect the topology spec of the cluster using it for delete might be deviating from it purpose.Some additional concerns:
/area runtime-sdk