Skip to content

How to detect 410 Gone in watch response? #452

@Ghazgkull

Description

@Ghazgkull

https://github.com/abonas/kubeclient#starting-watch-version

In the documentation for the watch API, there's a great callout that clients need to handle 410 Gone errors. But from looking at the documentation, it's not clear how to detect this case. Can a little clarification please be added to the doc to explain how to properly introspect the notice to find the status code?

e.g. Should we expect to see notice['object']['status'] == 410 or something?


I ask this because there's currently a nasty problem in the fluentd "kubernetes metadata" plugin which is a client of this library, where this error is not being handled properly and I'm trying to help resolve the issue. (See: fluent-plugins-nursery/fluent-plugin-kubernetes_metadata_filter#226)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docNeed to add/improve documentationquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions