Skip to content

Add hook-aware phase/status to the Lease resource #446

@raballew

Description

@raballew

Summary

Hook execution phases are currently only visible on the Exporter resource (BeforeLeaseHook, AfterLeaseHook, etc.), not on the Lease itself. A client watching its Lease object cannot tell whether hooks are running -- it must cross-reference the Exporter status.

Current state

Exporter status.exporterStatus has: Available, BeforeLeaseHook, LeaseReady, AfterLeaseHook, BeforeLeaseHookFailed, AfterLeaseHookFailed

Lease status.conditions only has: Pending, Ready, Unsatisfiable, Invalid

Proposal

Add hook-aware condition types or a phase field to the Lease status so that clients can observe the full lifecycle from the Lease resource alone, e.g.:

  • BeforeLeaseHook — pre-lease hook is executing
  • Ready — hooks completed, drivers available (existing)
  • AfterLeaseHook — post-lease cleanup hook is executing
  • HookFailed — a hook failed (with message indicating which one)

Context

Follows up on #104 which was implemented on the Exporter side. This issue covers the Lease side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions