Skip to content

[receiver/k8sobjects] Improve handling of response code 410 #24903

@TylerHelmuth

Description

@TylerHelmuth

Component(s)

No response

Is your feature request related to a problem? Please describe.

The watch capability of the K8s API will return an http status code of 410 and a status object if the resourceVersion supplied to the API is too old. At the moment the receiver handles these situations by logging that they occurred and then stopping the watch for the object in question.

This situation is most likely to occur if a user passes in a resource_version itself, but could occur during normal option as well (although that would be strange).

Describe the solution you'd like

Instead of giving up, the receiver could do a new List to get a new resourceVersion. See https://kubernetes.io/docs/reference/using-api/api-concepts/#410-gone-responses for details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions