Skip to main content

Crate cgn_helm

Crate cgn_helm 

Source
Expand description

Thin wrapper around the helm binary.

cgn-ctl install orchestrates a Cognitora install by invoking helm under the hood. Rust’s ecosystem doesn’t have a real Helm SDK, but shelling out is fine: helm is a single static Go binary, we ship it embedded in our release tarballs, and the surface we use is stable.

Structs§

Install
Install or upgrade a chart (helm upgrade --install).

Functions§

locate_helm
Locate the helm binary. Honours $CGN_HELM_BIN, falls back to PATH lookup.
template
helm template ... | yq equivalent for offline rendering. Returns YAML.
template_with_values
Convenience: render Vec<u8> of YAML for a chart from a serialisable values struct. Useful in tests and cgn-ctl install --dry-run.
uninstall
helm uninstall <release> -n <ns>.
version
helm version --short round-trip, used by cgn-ctl preflight.