Gardener Shoot Controller and Cloud API: Metadata Persistence During Cancellation
0 reputation · 29 Mar 2021, 23:39 UTC
Gardener utilizes controller-runtime to manage the lifecycle of shoot reconciliation, employing StopCh and WakeUpCh to propagate cancellation signals from the seed to the reconciliation loops. This mechanism ensures that API calls to external cloud providers honor context.WithTimeout to prevent hanging processes during shoot API server health checks.
A specific uncertainty exists regarding the integration boundary where cancellation interrupts the seed update cycle. When a shutdown signal is received during the persistence of metadata to the cluster state, there is a risk that the operation is interrupted before the final state is committed, potentially leaving orphaned temporary resources in the cloud provider environment.
- At what precise stage of the seed update cycle does the cancellation signal override the metadata persistence process?
- Does the current implementation guarantee atomicity for cloud resource tagging during a graceful shutdown?