Skip to main content

Module command

Module command 

Source
Expand description

Typed Helm commands, one file per group. Each command is a plain struct implementing Command; backends implement Execute for the ones they support.

Each command and each option group (such as ChartPathOptions) has a derived bon builder: Command::builder(required...), one setter per flag, .build(). A required argument cannot be left out:

ⓘ
use helm_rs::command::{Install, ReleaseName};

let _ = Install::builder(ReleaseName::Generated);

Structs§

ChartInfo
What helm show all reports, assembled from the individual show commands.
ChartPathOptions
The chart download flags shared by install, upgrade and the other commands that fetch a chart (addChartPathOptionsFlags, pkg/cmd/flags.go).
ChartVerification
What Helm verified about a chart: the signer and the hash of the archive (pkg/action/verify.go, pkg/action/pull.go, Helm v4.3.0).
Create
helm create (pkg/cmd/create.go): scaffolds a chart directory and returns its path.
DependencyBuild
helm dependency build: rebuilds charts/ from Chart.lock without renegotiating versions; without a lock file it behaves like DependencyUpdate. Helm prints progress lines only, which are dropped.
DependencyList
helm dependency list: the dependencies a chart declares and whether charts/ satisfies them. Helm has no machine output, so the CLI backend parses the table; it always passes --max-col-width with the largest value so that no cell is cut short.
DependencyListing
What helm dependency list printed (pkg/action/dependency.go, Helm v4.3.0).
DependencyOptions
The flags helm dependency build and helm dependency update share (addDependencySubcommandFlags, pkg/cmd/dependency.go, Helm v4.3.0).
DependencyRow
One row of the helm dependency list table.
DependencyUpdate
helm dependency update: resolves the dependencies of Chart.yaml, downloads them into charts/ and writes Chart.lock. Helm prints progress lines only, which are dropped.
Env
helm env: the environment settings Helm resolved, as HELM_* keys.
GetAll
helm get all (pkg/cmd/get_all.go): the text helm status --debug prints, with the chart metadata, values, hooks, manifest and notes. Helm has no JSON for it and its --template only offers plain Go template access to .Release (no functions, so no JSON encoder), which makes a typed result impossible; the output is the text. For structured data use Status plus GetManifest, GetHooks, GetValues and GetNotes.
GetHooks
helm get hooks (pkg/cmd/get_hooks.go): the hooks of a release, parsed from the hook manifests Helm prints. Helm prints no execution state, so last_run is empty; read it from Status instead.
GetManifest
helm get manifest (pkg/cmd/get_manifest.go): the rendered, non-hook manifests of a release, parsed.
GetMetadata
helm get metadata -o json (pkg/cmd/get_metadata.go).
GetNotes
helm get notes (pkg/cmd/get_notes.go): the rendered NOTES.txt, empty when the chart has none.
GetValues
helm get values -o json (pkg/cmd/get_values.go): the user-supplied values, or with all the computed ones. Helm prints null when no values were supplied.
HelmVersion
The build information of Helm (internal/version.BuildInfo, v4.3.0).
History
helm history -o json (pkg/cmd/history.go): the revisions of a release, oldest first.
HistoryEntry
One revision in helm history -o json (releaseInfo, pkg/cmd/history.go).
HubChart
One hub result (hubChartElement in pkg/cmd/search_hub.go, Helm v4.3.0).
HubRepository
The repository of a HubChart (hubChartRepo).
Install
helm install -o json (pkg/cmd/install.go, pkg/action/install.go): installs a chart and returns the release Helm recorded (with dry_run set, the one it would record).
Lint
helm lint (pkg/cmd/lint.go, pkg/action/lint.go): checks charts and returns the findings.
LintMessage
One finding: Helm prints it as [SEVERITY] path: message.
LintReport
What helm lint printed.
LintSummary
The totals Helm reports (N chart(s) linted, M chart(s) failed).
LintedChart
The findings for one linted chart.
List
helm list -o json (pkg/cmd/list.go). Helm’s --short, --no-headers and --time-format only change the table or the time text, which the typed output replaces, so they are not fields (--short is the names of the result).
ListItem
One release of helm list -o json (releaseElement, pkg/cmd/list.go). Helm writes the revision and the time as strings; both are parsed here.
Package
helm package (pkg/cmd/package.go, pkg/action/package.go): packages chart directories into NAME-VERSION.tgz archives and returns the path of each, in order.
Plugin
One installed plugin: a row of the helm plugin list table (pkg/cmd/plugin_list.go).
PluginInstall
helm plugin install: installs a plugin from a local directory, an archive URL, a VCS URL or an oci:// reference.
PluginInstalled
What a successful helm plugin install printed (pkg/cmd/plugin_install.go, Helm v4.3.0).
PluginList
helm plugin list: the installed plugins. Helm has no machine output for it, so the CLI backend parses the table.
PluginPackage
helm plugin package: packages a plugin directory into NAME-VERSION.tgz, signed by default.
PluginUninstall
helm plugin uninstall: removes installed plugins.
PluginUpdate
helm plugin update: updates installed plugins from their source.
PluginVerification
What a successful helm plugin verify reports (pkg/cmd/plugin_verify.go, Helm v4.3.0).
PluginVerify
helm plugin verify: verifies a plugin tarball against its .prov file. Failure is the error; success returns the signer and the verified hash.
Pull
helm pull: downloads a chart from a repository, a URL or an OCI registry, and optionally unpacks it. The destination directory must exist. Helm’s several-charts form is a loop over the charts with the same flags (pkg/cmd/pull.go), so this command pulls one chart; run it once per chart.
Pulled
What a successful helm pull printed (pkg/action/pull.go, Helm v4.3.0). Helm does not print where it saved the chart: that is <destination>/<name>-<version>.tgz, or with untar a directory below it.
Push
helm push: uploads a packaged chart (and its .prov file when it sits next to it) to an OCI registry. Helm 4.3 has only the OCI pusher.
RegistryArtifact
A chart or provenance blob in an OCI registry, as the Pulled:/Pushed: and Digest: line pairs of Helm’s registry client name it (pkg/registry/client.go).
RegistryLogin
helm registry login: stores credentials for an OCI registry in the registry config.
RegistryLogout
helm registry logout: removes the stored credentials of a registry.
ReleaseMetadata
The result of helm get metadata -o json (action.Metadata, pkg/action/get_metadata.go).
RepoAdd
helm repo add: adds a chart repository to repositories.yaml and downloads its index.
RepoChart
One repository search result (repoChartElement in pkg/cmd/search_repo.go, Helm v4.3.0).
RepoIndex
helm repo index: writes index.yaml for the packaged charts (*.tgz) in a directory. Read the result natively with Index::load.
RepoList
helm repo list: the configured chart repositories, requested as -o json.
RepoRemove
helm repo remove: removes repositories and their cached indexes.
RepoUpdate
helm repo update: downloads the indexes of the repositories.
Repository
One configured repository (repositoryElement in pkg/cmd/repo_list.go, Helm v4.3.0).
Rollback
helm rollback (pkg/cmd/rollback.go): rolls a release back to an earlier revision. Helm prints only a success line, so there is no output; read the result with Status.
SearchHub
helm search hub: searches Artifact Hub (or another Monocular-compatible hub) over the network, requested as -o json. --max-col-width and --list-repo-url only shape the table, and the JSON always carries the repository, so they are not modelled.
SearchRepo
helm search repo: searches the cached indexes of the added repositories, requested as -o json. --max-col-width only shapes the table, so it is not modelled.
ShowAll
helm show all: the chart metadata, values, README and CRDs. Helm’s own show all output cannot be split reliably (it marks no part boundaries), so the CLI backend runs show chart, show values, show readme and show crds concurrently and combines them.
ShowChart
helm show chart (pkg/cmd/show.go): the Chart.yaml metadata Helm prints, parsed.
ShowCrds
helm show crds: the files of the chart’s crds/ directory, parsed.
ShowReadme
helm show readme: the contents of the chart’s README (README.md, README.txt or README, any case), exactly as in the file. None when the chart has none; an empty README is Some("") (Helm prints a newline for it and nothing for no README).
ShowValues
helm show values (pkg/cmd/show.go, pkg/action/show.go): the chart’s values.yaml, exactly as in the file. None when the chart has none; an empty file is Some("") (Helm prints a newline for it and nothing for no file). With jsonpath the output is what the expression selects, and None means it selected nothing (or there are no values).
Status
helm status -o json (pkg/cmd/status.go): the release without its chart (Helm strips it). The resources of info.resources are only filled in for this machine output.
Template
helm template (pkg/cmd/template.go): renders a chart locally, with the flags of helm install (addInstallFlags) and its own. helm template is always a dry run, so dry_run may be Client (Helm’s default) or Server but not None. The deprecated --validate (use --dry-run=server) and the no-op --hide-notes and --render-subchart-notes are not modelled.
Test
helm test (pkg/cmd/release_testing.go): runs the test hooks of a release. Helm has no machine-readable output for it (there is no -o), so the output is the status text it prints (including a TEST SUITE block per test); the structured result is the hooks’ last_run in the release read afterwards with Status. A failing test makes Helm exit with an error, which is reported as Error::Backend.
Uninstall
helm uninstall (pkg/cmd/uninstall.go): removes one or more releases. Helm prints one release "name" uninstalled line per release (also for a missing one under ignore_not_found, and for a dry run), which carries no more than success, so there is no output. A release that does not exist is Error::ReleaseNotFound unless ignore_not_found is set. Helm stops at the first failure; earlier releases stay uninstalled.
Upgrade
helm upgrade -o json (pkg/cmd/upgrade.go, pkg/action/upgrade.go): upgrades a release to a chart and returns the release Helm recorded. With install, a missing or uninstalled release is installed instead and the same JSON comes back.
Verify
helm verify: verifies a packaged chart against the PATH.prov file next to it. Failure is the error; success returns the signer and the verified hash.
Version
helm version: the version of the Helm binary.

Enums§

Cascade
How Helm deletes the objects that depend on a release’s resources (--cascade).
ChartRef
A chart as helm install, helm upgrade and the other chart commands accept it (ChartPathOptions.LocateChart, pkg/action/install.go). Helm tries a local path first, then the remote forms.
DependencyStatus
The status column of helm dependency list (dependencyStatus and statArchiveForStatus, pkg/action/dependency.go): every string Helm v4.3.0 can print.
DryRun
The --dry-run strategies (addDryRunFlag, pkg/cmd/helpers.go). The bare --dry-run and the boolean forms are deprecated legacy spellings of DryRun::Client and DryRun::None and are not modelled.
Force
How to resolve a conflict with live objects. Helm rejects --force-replace together with --force-conflicts, so the two are one choice.
Passphrase
Where helm plugin package --sign reads the passphrase of the signing key.
ReleaseName
How the release of an install is named. Helm refuses a name together with --generate-name or --name-template, so the three are one choice.
ServerSide
The --server-side choice of upgrade and rollback (a string flag there; install has a plain boolean instead).
Severity
How serious a lint finding is (pkg/chart/v2/lint/support/message.go).
Templated
What helm template produced: the documents it printed, or, with output_dir, the files it wrote instead.
ValuesMode
Which values an upgrade starts from. Helm documents --reset-values as winning over --reuse-values, which wins over --reset-then-reuse-values, so only the winner is modelled. Without a mode, Helm starts from the chart’s values.
WaitStrategy
The --wait strategies (waitValue, pkg/cmd/flags.go). Helm’s default when the flag is omitted is hookOnly; the bare --wait means watcher, so the CLI backend always writes the explicit --wait=<strategy> form.