kube-rs / website

website
https://kube.rs
7 stars 18 forks source link

Add a doc about how to re-use reconciler/controller logic #47

Closed clux closed 11 months ago

clux commented 11 months ago

feel like this is another question that pops up a bit so thought i'd take the setup i personally use for labelling and show it as an example in a new advanced chapter in the controller guide.

So far, this only features a way to do generics via PartialObjectMeta<K> which is a very particular shortcut, but a very effective one. I am happy to let someone else who has strong opinions on code generics chime in or write other sections.

clux commented 11 months ago

the people who might have thoughts; @nightkr @Dav1dde

note i don't intend this to be a comprehensive guide yet, since as the linked pr comments show, the current setup for fully generic Api usage is possibly a bit tricky. but if you have strong thoughts or concerns here i'd appreciate hearing them.