helm-wrapper-rs
Helm wrapper library for Rust.
Commands supported:
- List releases
- Install chart (through
helm upgrade --install) - Uninstall chart
- Safety mode (by default). Don't log sensitive data.
Getting started
[]
= { = "0.4.0", = ["blocking"] }
use crateDefaultHelmExecutor;
let helm_executor = new;
helm_executor.uninstall?;
helm_executor.install_or_upgrade?;
let releases = helm_executor.list_releases?;
helm_executor.uninstall?;
println!;
Features
blocking(default)nonblocking
Mock
Add blocking-mock or nonblocking-mock features:
= { = "0.4.0", =["blocking-mock"] }
Then use MockHelmExecutor.
Run integration tests
What tests do:
- Install whoami helm chart
- Get information about installed charts (helm releases)
- Uninstall whoami helm chart
Kubernetes cluster is required. You can use K3s:
|
Run tests:
RoadMap
- Strict type checking with nutype