-
-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default enable watch bookmarks #226
Comments
I would flip this and ask: where would you ever want to disable bookmarks? If you care about bandwidth: you'll want to implement them. If you don't care about bandwidth, it's a trivial match arm to add, and to me it feels perfectly "Rusty" to have to add friction to slower options (just like |
Besides, there's the usual shpiel about cargo features causing breakage if they're not purely additive (since a sibling dependency might enable it for you, for example). |
Yeah, convinced by that argument. Thank you. So flipping this, perhaps we should just enable them in |
Sounds good to me. |
Since this flag does nothing for older apiservers it's safe to default enable it. This will also close #219 in the process. Note that ListParams does not pick up on the flag for non-watch calls.
ListParams to default enable bookmarks - closes #226
Currently, you have to select whether to pass on
allowWatchBookmarks
to the api server viaListParams
, but you always have to have a match arm for it in when you get aWatchEvent
fromapi.watch
.We could simplify this by having bookmarks be a compile time feature that makes the struct larger if enabled, as well as it automatically being enabled in
ListParams::default
.Is this a too small use of a feature?
The text was updated successfully, but these errors were encountered: