Reverse K8s resources: from YAML to Go structs
summary
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
chapters (6)
- 0:00Start
- 0:30Reverse Cube Resource
- 3:54Non-Trivial Topology
- 6:11What Is Runtime Schema
- 6:43What Is a Runtime Object
- 18:31Sample Usage
related talks
33mGo from Kubernetes YAML to software engineer with CDK8s
35mIntroducing Kubernetes Resource Orchestrator (KRO)
21mAre you ready to delete some YAML?
01h 17mTutorial: Say Goodbye to YAML Engineering with the CDK for K8s
34mExtending Kubernetes 101
34mGitOps and KRO: A New Way to Control Cloud Infra
17mOwn your YAML: extending Kustomize via Plugins
24mKubernetes-Powered Platform Engineering: From IaC To API-Driven Infrastructure
