Skip to content

fix(nodepool): scope autoRepair/ignition gate to regular MHC only instead of returning from entire CAPI Reconcile #8735

@dpateriya

Description

@dpateriya

Background

In PR #8645 we moved the spot MHC reconciliation before the autoRepair/ReachedIgnitionEndpoint gate in CAPI.Reconcile() to fix a bug where the spot MHC was never created when ignition wasn't reached.

However, the current gate still returns nil from the entire Reconcile function when autoRepair is enabled but ignition hasn't been reached. This means everything after the gate (MachineDeployment reconciliation, etc.) is also skipped.

Proposed Change

Refactor the gate so it only affects regular MHC creation:

  • Instead of return nil when ignition isn't reached, skip only the regular MHC reconciliation
  • Allow the rest of Reconcile() (MachineDeployment, etc.) to proceed normally

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions