Skip to content

Commit 4319088

Browse files
committed
Migrate OnboardingController to SSA status updates
Replace PatchHypervisorStatusWithRetry with Status().Apply(). The Nova ID lookup is inlined into Reconcile and combined with the initial condition in a single apply, avoiding two applies from the same field manager in one reconcile cycle which would cause SSA to prune the IDs. HypervisorID and ServiceID are included in every subsequent apply to retain ownership. The status config is built once at the top of Reconcile and threaded through to all sub-functions (abortOnboarding, initialOnboarding, smokeTest, completeOnboarding) which mutate it directly. An apply closure is also passed so each function calls apply() when it has determined the desired condition, rather than building and applying the config itself. The flow becomes fully declarative: compute desired state, then apply once. Seed only the condition owned by this controller (ConditionTypeOnboarding) so SSA does not claim ownership over conditions written by other controllers. Signed-off-by: Fabian Wiesel <fabian.wiesel@sap.com>
1 parent a68eab3 commit 4319088

1 file changed

Lines changed: 125 additions & 160 deletions

File tree

0 commit comments

Comments
 (0)