The Hidden Generics in Kubernetes' API - Eirik Albrigtsen, Babylon Health

preview_player
Показать описание

The Hidden Generics in Kubernetes' API - Eirik Albrigtsen, Babylon Health

A look into how apimachinery enforces strong conventions on kubernetes' api, how that impacts client-go, and how we can take advantage of these hidden generic properties to build an actually generic client in rust. We will go through a kubernetes Object, its generic parts as modelled via a rust Trait, and how this enables the rust compiler to automatically populate all kubernetes objects' api calls and serialization code from a single generic impl. We will also show examples on how to write single file, performant, async/await rust controllers that follow operator best practices.

Рекомендации по теме