vmware-tanzu/vm-operator — reverse-engineered prompt
Reverse engineered prompt
Build me a Go based Kubernetes operator for managing virtual machines with a Kubernetes style declarative API. I want users to be able to describe the VM they want in YAML, apply it to the cluster, and have the operator create, update, delete, and keep the real virtual machine state in sync automatically.
Include the basic custom resources, controllers, validation webhooks, and a clean command entry point so it can run inside Kubernetes. Make it feel like a real infrastructure project, with sensible config manifests, examples, docs, tests, and a Dockerfile for building the manager image. The main goal is self service VM management for platform users, not a UI.
Please keep the code organized and production minded, but don’t overcomplicate it. If you need details about current Kubernetes operator patterns or docs, look them up online and follow the modern approach.
Want more depth? Deep Reverse