Understand the Kompose internal architecture
mainKompose operates through a three-stage pipeline designed with well-defined interfaces to allow for extensibility. The stages are:
- Loader: Reads input files (currently supporting Docker Compose v1 and v2) and converts them into an internal
KomposeObjectrepresentation. - Transformer: Takes the
KomposeObjectand converts it into target Kubernetes or OpenShift objects. - Outputter: Takes the transformed objects and executes an action, such as printing them to
stdoutor deploying them directly to a cluster.