How to surfacing runtime hook blocking cluster deletion in condition
#6,807 建立於 2022年7月2日
倉庫指標
- 星標
- (4,267 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
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:
-
Use
TopologyReconciledcondition - Since only managed clusters are affected byBeforeClusterDeletehook we can use theTopologyReconciledcondition 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. -
Use a separate condition - Since
TopologyReconciledcondition 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:
- How should the condition be updated after deletion is unblocked and the cluster is in the process of deleting the objects?
- Which controller owns this condition?
/area runtime-sdk