zuke.tools.helm
@zuke/helm 1.1.1: @zuke/helm — typed HelmTasks wrappers for the [Helm](https://helm.sh) CLI, for packaging and deploying to Kubernetes from a Zuke build.
zuke on PyPI ↗ 13 symbols
Symbols
class HelmDependencyUpdateSettings(HelmSettings) Settings for helm dependency update.
-
chart(path: str) -> SelfThe chart path whose dependencies to update (required).
class HelmGetAllSettings(HelmSettings) Settings for helm get all (everything recorded about a release).
-
release(name: str) -> SelfThe release to read (required).
-
revision(number: float) -> SelfRead a specific revision instead of the latest (
--revision). A whole number from 1 up. -
template(value: str) -> SelfFormat the output with a Go template over
.Release(--template) — e.g.{{.Release.Version}}prints just the current revision.
class HelmInstallSettings(HelmValuesSettings) Settings for helm install.
-
release(name: str) -> SelfThe release name (required).
-
chart(ref: str) -> SelfThe chart reference or path (required).
-
create_namespace() -> SelfCreate the release namespace if absent (
--create-namespace). -
wait() -> SelfWait until resources are ready (
--wait). -
atomic() -> SelfRoll back on failure (
--atomic). -
timeout(duration: str) -> SelfOperation timeout, e.g.
5m(--timeout). -
dry_run() -> SelfSimulate the install (
--dry-run).
class HelmLintSettings(HelmSettings) Settings for helm lint.
-
chart(path: str) -> SelfThe chart path to lint (required).
-
values(path: str) -> SelfAdd a values file (
--values); repeatable. -
strict() -> SelfTreat warnings as errors (
--strict).
class HelmPackageSettings(HelmSettings) Settings for helm package.
-
chart(path: str) -> SelfThe chart path to package (required).
-
destination(path: str) -> SelfOutput directory for the packaged chart (
--destination). -
version(value: str) -> SelfSet the chart version (
--version). -
app_version(value: str) -> SelfSet the chart appVersion (
--app-version).
class HelmRepoAddSettings(HelmSettings) Settings for helm repo add.
-
name(value: str) -> SelfThe repository name (required).
-
url(value: str) -> SelfThe repository URL (required).
class HelmRollbackSettings(HelmSettings) Settings for helm rollback.
-
release(name: str) -> SelfThe release to roll back (required).
-
revision(number: float) -> SelfThe revision to roll back to. Without one, helm rolls back to the previous revision. A whole number from 1 up.
-
wait() -> SelfWait until resources are ready (
--wait). -
timeout(duration: str) -> SelfOperation timeout, e.g.
5m(--timeout). -
history_max(count: float) -> SelfKeep at most
countrevisions of the release;0keeps them all (--history-max). A whole number from 0 up.
class HelmSettings(ToolSettings) Base for all helm subcommand settings: the binary is helm, and the cluster-targeting flags (--namespace, --kube-context, --kubeconfig) are shared by every subcommand.
-
namespace(name: str) -> SelfTarget a namespace (
--namespace). -
kube_context(name: str) -> SelfUse a named kube context (
--kube-context). -
kubeconfig(path: str) -> SelfUse an explicit kubeconfig file (
--kubeconfig).
class HelmTasks Typed task functions for the helm CLI.
-
static async install(ctx: ServiceContext, configure: Callable[[HelmInstallSettings], HelmInstallSettings] | None=None) -> ExecResultInstall a chart:
helm install. -
static async upgrade(ctx: ServiceContext, configure: Callable[[HelmUpgradeSettings], HelmUpgradeSettings] | None=None) -> ExecResultUpgrade (or install) a release:
helm upgrade. -
static async uninstall(ctx: ServiceContext, configure: Callable[[HelmUninstallSettings], HelmUninstallSettings] | None=None) -> ExecResultUninstall a release:
helm uninstall. -
static async rollback(ctx: ServiceContext, configure: Callable[[HelmRollbackSettings], HelmRollbackSettings] | None=None) -> ExecResultRoll a release back to an earlier revision:
helm rollback. -
static async get_all(ctx: ServiceContext, configure: Callable[[HelmGetAllSettings], HelmGetAllSettings] | None=None) -> ExecResultRead everything recorded about a release:
helm get all. -
static async template(ctx: ServiceContext, configure: Callable[[HelmTemplateSettings], HelmTemplateSettings] | None=None) -> ExecResultRender manifests locally:
helm template. -
static async lint(ctx: ServiceContext, configure: Callable[[HelmLintSettings], HelmLintSettings] | None=None) -> ExecResultLint a chart:
helm lint. -
static async dependency_update(ctx: ServiceContext, configure: Callable[[HelmDependencyUpdateSettings], HelmDependencyUpdateSettings] | None=None) -> ExecResultUpdate chart dependencies:
helm dependency update. -
static async repo_add(ctx: ServiceContext, configure: Callable[[HelmRepoAddSettings], HelmRepoAddSettings] | None=None) -> ExecResultAdd a chart repository:
helm repo add. -
static async package(ctx: ServiceContext, configure: Callable[[HelmPackageSettings], HelmPackageSettings] | None=None) -> ExecResultPackage a chart:
helm package.
class HelmTemplateSettings(HelmValuesSettings) Settings for helm template (render manifests locally).
-
release(name: str) -> SelfThe release name (required).
-
chart(ref: str) -> SelfThe chart reference or path (required).
-
output_dir(path: str) -> SelfWrite rendered manifests to a directory (
--output-dir).
class HelmUninstallSettings(HelmSettings) Settings for helm uninstall.
-
release(name: str) -> SelfThe release name to uninstall (required).
-
keep_history() -> SelfRetain release history (
--keep-history). -
ignore_not_found() -> SelfTreat "release not found" as a successful uninstall (
--ignore-not-found, Helm 3.13 and later). -
wait() -> SelfWait until removal completes (
--wait).
class HelmUpgradeSettings(HelmValuesSettings) Settings for helm upgrade.
-
release(name: str) -> SelfThe release name (required).
-
chart(ref: str) -> SelfThe chart reference or path (required).
-
install() -> SelfInstall the release if it does not exist (
--install). -
reuse_values() -> SelfReuse the last release's values and merge the command line's
--setand--valuesover them (--reuse-values). -
reset_then_reuse_values() -> SelfReset to the new chart's default values, apply the last release's values over them, then the command line's (
--reset-then-reuse-values, Helm 3.14 and later). Unlike reuseValues, a default the new chart changed is picked up. -
history_max(count: float) -> SelfKeep at most
countrevisions of the release;0keeps them all (--history-max). A whole number from 0 up. -
create_namespace() -> SelfCreate the release namespace if absent (
--create-namespace). -
wait() -> SelfWait until resources are ready (
--wait). -
atomic() -> SelfRoll back on failure (
--atomic). -
timeout(duration: str) -> SelfOperation timeout, e.g.
5m(--timeout).
class HelmValuesSettings(HelmSettings) Base for value-bearing commands (install/upgrade/template).
-
values(path: str) -> SelfAdd a values file (
--values/-f); repeatable. -
set(name: str, value: str) -> SelfOverride a single value (
--set name=value); repeatable. -
set_string(name: str, value: str) -> SelfOverride a single value as a string (
--set-string name=value); repeatable. Unlike--set, helm does not infer a type, so a tag such as1.10or2024stays a string. -
version(value: str) -> SelfPin the chart version (
--version).