8000 Feature request: wait for resources to exist. · Issue #8 · iNecas/kube-health · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature request: wait for resources to exist. #8
Open
@alanconway

Description

@alanconway

Use case: I delete a resource to force it to be re-created by an operator.
I want to use kube-health to wait until the resource is re-created and progresses to a healthy state.

Current behavior: kube-health -O with a non-existent resource name returns immediately.
When called immediately after kubectl delete it usually does not wait because the resource does not yet exist, as there is an unpredicatble delay until the operator re-creates it.

Desired behavior: with waiting flags (-W or -O) kube-health first waits for the resource to exist, then waits for it to progress.

Backwards compatibility: add --ignore-not-found flag to return immediately with no error if resource not found (current behavior).
This is consistent with the meaning of --ignore-not-found as used by kubectl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0