Crates.io | helm-wrapper-rs |
lib.rs | helm-wrapper-rs |
version | 0.4.1 |
created_at | 2024-12-21 15:20:22.738935+00 |
updated_at | 2025-05-25 12:24:07.715566+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 |
size | 68,227 |
Helm wrapper library for Rust.
Commands supported:
helm upgrade --install
)To use helm-wrapper-rs
, add it to your Cargo.toml
:
[dependencies]
helm-wrapper-rs = "0.4.1"
blocking
(default)nonblocking
Check examples directory for usage examples.
Add blocking-mock
or nonblocking-mock
features:
helm-wrapper-rs = { version = "0.4.1", features = ["blocking-mock"] }
Then use MockHelmExecutor
.
First of all I suggest you to install mold
linker for faster compilation time.
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"