misc(summaryInformer): make ListWatcher context-aware#668
Conversation
brandond
left a comment
There was a problem hiding this comment.
While you're here, why not do the other ListWatch a couple lines above in NewFilteredSummaryInformerWithOptions?
@brandond Not 100% sure, but I think the reason for this is because wrangler was semver (now semver-ish) so using new context-aware methods / fields would break old codebases if you were using pinning to pin k8s to older version. We've talked a few times now about making wrangler making wrangler basically just follow k8s in terms of Go and k8s libraries.. I still haven't "done" that yet, not sure if it requires a RFD of some kind.. But I think we should just do it because we keep coming back to the same annoying and confusing rules of "well, does this break an older version of rancher / k3s if we're pinning old version. |
|
Yeah, I guess my point is we (Darren) should have made a breaking change to wrangler when upstream client-go made their breaking change. Instead we had Wrangler just inject TODO everywhere and now it's years later and there is MORE downstream code to fix, not less. I'm just whinging. |
ListFuncandWatchFuncare marked as deprecated (context.TODO()was already a hint), in favor of context-aware equivalents.