Skip to content

fix(nodepool): add spot MHC cleanup on NodePool deletion #8736

Description

@dpateriya

Background

When a NodePool with spot instances enabled is deleted, the deletion path in nodepool_controller.go (around line 527) only cleans up the regular MHC, not the spot-specific MHC (<nodepool-name>-spot).

This can leave orphaned spot MHC resources in the control plane namespace after the NodePool is removed.

Proposed Change

Update the NodePool deletion path to also delete the spot MHC alongside the regular MHC.

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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