Skip to content

Conversation

@euberseder-hubspot
Copy link

@euberseder-hubspot euberseder-hubspot commented Sep 20, 2025

Enables watch bookmarks by default in the reflector, with an environment option to disable and revert to the previous behavior.

There is a rather unfortunate difference between specifically enabling watch bookmarks and not disabling watch bookmarks as can be seen here: https://github.com/HubSpot/kubernetes-client/blob/6.13.4-hubspot/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/AbstractWatchManager.java#L136-L140

We do not want to receive watch bookmarks, as that will cause deserialization errors, but we do want the optimization provided by having the list resource version continuously updated. If nothing is set in the list options builder, we won't receive watch bookmarks, but they are enabled on watch requests and the resource version is updated before they are discarded.

Relates to https://git.hubteam.com/HubSpot/kube-operators/issues/9802

@euberseder-hubspot euberseder-hubspot changed the title support enabling watch bookmarks in reflector allow watch bookmarks in Reflector watches by default Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants