1 unstable release

new 0.1.0 Dec 21, 2024

#125 in Visualization

MIT/Apache

21KB
423 lines

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

[dependencies]
helm-wrapper-rs = "0.1.0"
let helm_executor = DefaultHelmExecutor::new();

let releases = helm_executor.list_releases();

println!("{}", releases);

Mock

Add mock feature:

helm-wrapper-rs = { version = "0.1.0", features=["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:

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

RoadMap

  • Strict type checking with nutype

Dependencies

~0.7–1.7MB
~35K SLoC