Skip to content

fix(discovery): 410 Gone returned by the Watch call never triggers a re-list #182

Description

@lexfrei

Discovery can get stuck on a stale endpoint list until a restart. If the Watch call itself fails with 410 Gone or ResourceExpired, the Kubernetes provider never re-lists. watchOnce wraps the error, so the 410 check misses it, and the provider keeps retrying the watch with the same expired resource version under backoff.

With the watch cache the expiry usually comes as an event inside the stream, and that path works. client-go's reflector still handles the error on the Watch call too (isExpiredError), so the case is real. The 410 handling came with a09adab.

Fixed in #177.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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