compose/docs/reference/compose_bridge_convert.md
Guillaume Lours a896529193 fix(bridge): confirm before wiping non-empty convert output dir
`bridge convert -o <dir>` unconditionally ran `os.RemoveAll` on the
output directory and discarded any error, so a typo (`-o .`, `-o
$PWD`, `-o ~`) silently destroyed unrelated user data.

An empty or missing output directory is still created silently, but a
non-empty one now requires explicit confirmation (prompted
interactively, or via the new `--yes` flag for scripts/CI) before
being wiped.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-09-03 14:38:41 +02:00

1.4 KiB

docker compose bridge convert

Convert compose files to Kubernetes manifests, Helm charts, or another model

Options

Name Type Default Description
--dry-run bool Execute command in dry run mode
-o, --output string out The output directory for the Kubernetes resources
--templates string Directory containing transformation templates
-t, --transformation stringArray Transformation to apply to compose model (default: docker/compose-bridge-kubernetes)
-y, --yes bool Assume "yes" to the output directory overwrite prompt. For scripts/CI, where no interactive confirmation is possible