Crates.io | helm-wrapper-rs |
lib.rs | helm-wrapper-rs |
version | |
source | src |
created_at | 2024-12-21 15:20:22.738935+00 |
updated_at | 2025-04-13 18:41:46.318776+00 |
description | Helm wrapper library for Rust |
homepage | https://github.com/lebe-dev/helm-wrapper-rs |
repository | https://github.com/lebe-dev/helm-wrapper-rs |
max_upload_size | |
id | 1491079 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Helm wrapper library for Rust.
Commands supported:
helm upgrade --install
)[dependencies]
helm-wrapper-rs = { version = "0.4.0", features = ["blocking"] }
use crate::blocking::DefaultHelmExecutor;
let helm_executor = DefaultHelmExecutor::new();
helm_executor.uninstall("namespace", "release")?;
helm_executor.install_or_upgrade(
namespace,
release_name,
chart_name,
chart_version,
values_overrides,
values_file,
helm_options,
)?;
let releases = helm_executor.list_releases()?;
helm_executor.uninstall("namespace", "release")?;
println!("{:?}", releases);
blocking
(default)nonblocking
Add blocking-mock
or nonblocking-mock
features:
helm-wrapper-rs = { version = "0.4.0", features=["blocking-mock"] }
Then use MockHelmExecutor
.
What tests do:
Kubernetes cluster is required. You can use K3s:
curl -sfL https://get.k3s.io | sh -
chown $USER: /etc/rancher/k3s/k3s.yaml
chmod g-r /etc/rancher/k3s/k3s.yaml
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
Run tests:
cargo test --no-default-features --features "blocking"
cargo test --no-default-features --features "nonblocking"