Marea.Plugins.Helm (marea v0.0.1-rc.1)

Copy Markdown View Source

Helm subcommands: chart, list, history, values, template, upgrade, delete, rollback. Also contributes build helm under the Marea.Plugins.Build parent: build the release, build the docker image (via Marea.Plugins.Docker), push to the registry, write the resulting image tag back into the deploy's values.yaml, and optionally helm upgrade.

Generates a Helm chart from marea.yaml (using templates from <marea_dir>/templates/ or Marea.Templates defaults) or copies a pre-existing chart from helm.chart_dir. See the Helm Plugin guide.

Optional. Enable by listing Marea.Plugins.Helm under plugins: in marea.yamlMarea.Plugins.Docker and Marea.Plugins.Build come in transitively via plugin_deps.

Summary

Functions

Runs helm upgrade --install. Public so build helm --upgrade can trigger an upgrade after a successful image push.

Writes the freshly built image:vsn into the deploy's values.yaml under services.<release>.image and commits the change. Called from Marea.Plugins.Build during build helm.

Functions

run_upgrade(config)

@spec run_upgrade(Marea.Config.t()) :: :ok | no_return()

Runs helm upgrade --install. Public so build helm --upgrade can trigger an upgrade after a successful image push.

store_image(config)

@spec store_image(Marea.Config.t()) :: Marea.Config.t()

Writes the freshly built image:vsn into the deploy's values.yaml under services.<release>.image and commits the change. Called from Marea.Plugins.Build during build helm.