Use compose-go https://github.com/compose-spec/compose-go to make Katenary parsing compose file the official way. Add labels: - `volume-from` (with `same-pod`) to avoid volume repetition - `ignore` to ignore a service - `mapenv` (replaces the `env-to-service`) to map environment to helm variable (as a template string) - `secret-vars` declares variables as secret values More: - Now, environment (as secret vars) are set in values.yaml - Ingress has got annotations in values.yaml - Probes (liveness probe) are improved - fixed code to optimize - many others fixes about path, bad volume check, refactorisation, tests...
Basic example
This is a basic example of what can do Katenary with standard docker-compose file.
In this example:
depends_on
yield ainitContainer
in the webapp ddeployment to wait for database- so we need to declare the listened port inside
database
container as we don't use it with docker-compose- also, we needed to declare thatDB_HOST
is actually a service name usingmapenv
label
Take a look on chart/basic directory to see what katenary convert
command has generated.