~/talk

Reverse K8s resources: from YAML to Go structs

Talkat ContainerDays 2022 · 2022-09-05..09-07· [kubernetes]
links:none on file
slides:none on file

A CLI named reverse-kube-resource converts YAML Kubernetes manifests (Helm, Kustomize) into buildable Go code that uses upstream API packages, preserving only fields present in the YAML. It decodes with API machinery into runtime objects, compares against an unstructured map to drop defaults, then emits Go via reflection and AST walking. Practical uses: migrating Helm-rendered YAML to Go (used in two companies), repo has 20 stars on GitHub, CRD schema detection is still WIP.

AI-written summary · about

  1. 0:00Start
  2. 0:30Reverse Cube Resource
  3. 3:54Non-Trivial Topology
  4. 6:11What Is Runtime Schema
  5. 6:43What Is a Runtime Object
  6. 18:31Sample Usage
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.