Skip to content

Allow Lua health checks to report message for resources being deleted #27595

@crenshaw-dev

Description

@crenshaw-dev

Summary

Custom health checks should be able to return specific messages about a resource being deleted. Right now it's hard-coded as "Pending deletion."

Motivation

Resources often have finalizers that get "stuck" - i.e. not cleaned up by the relevant controller. Users get confused. Argo CD can provide additional info via custom health checks to explain what the finalizer is for and what is responsible for cleaning it up.

Proposal

Right now, when deletionTimestamp is set, Argo CD returns a hard-coded Progressing/Pending deletion status and message.

Instead, we should look for and run any available Lua health script. If one is available, we should return Pending deletion: + the output message. We should hard-code the Progressing status to ensure consistent behavior and backwards compatibility.

If we don't have a custom health check, we should return the same Progressing/Pending deletion we return today.

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