Skip to content

Bug: WaitTask waits for filtered resources #452

Closed
@karlkfi

Description

@karlkfi

WaitTask currently ignores failed applies and failed prunes, but doesn't ignore resources skipped by filters in the ApplyTask or WaitTask.

Because WaitTasks are only added when there are dependencies (depends-on, CRDs, namespaces, etc.), this hasn't been much of a problem yet, but when using a sufficiently large/complex set of resources, it's feasible for the WaitTask to wait until timeout and fail because it's waiting for one of the following:

  • [deletion prevention, inventory policy, local namespace] Expecting a delete that was skipped to cause that object to become NotFound
  • [inventory policy] Expecting an apply that was skipped to cause the object (previously different or broken) to become Current

Suggested fix:

  • Add tracking of skipped deletions and applies to the TaskContext (similar to the existing deletion tracking)
  • Update WaitTask to ignore skipped deletions and applies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions