Skip to main content

Module generate

Module generate 

Source
Available on crate feature deployment only.
Expand description

Generate deployment artifacts (Dockerfile, Helm chart, Compose fragment, container manifest, ArgoCD Application) from a DeploymentContract.

Apps provide ~20% customisation (ports, secrets, config); this module generates ~80% boilerplate. Split by artefact kind into submodules; the public surface is unchanged (re-exported here).

Structs§

ArgocdConfig
Configuration for ArgoCD Application generation.

Functions§

generate_argocd_application
Generate an ArgoCD Application custom-resource YAML from the deployment contract.
generate_chart
Generate a complete Helm chart directory from the deployment contract.
generate_compose_fragment
Generate a Docker Compose service fragment from the deployment contract.
generate_container_manifest
Generate a container manifest JSON for CI consumption.
generate_dockerfile
Generate a Dockerfile from the deployment contract.
generate_runtime_stage
Generate only the runtime stage of a Dockerfile as a fragment.