kubeclient

Crates.iokubeclient
lib.rskubeclient
version0.1.0
sourcesrc
created_at2017-10-05 05:17:35.153547
updated_at2017-10-05 05:17:35.153547
descriptionAn ergonomic Kubernetes API client to manage Kubernetes resources
homepage
repositoryhttps://github.com/anowell/kubeclient-rs
max_upload_size
id34453
size61,875
Anthony Nowell (anowell)

documentation

http://docs.rs/kubeclient

README

An ergonomic Kubernetes API client to manage Kubernetes resources

Crates.io

Documentation

docs.rs/kubeclient

Usage

Basic usage looks like this:

use kubeclient::prelude::*;

let kube = Kubernetes::load_conf("admin.conf")?;

if kube.healthy()? {
  if !kube.secrets().exists("my-secret")? {
    let output = kube.secrets().get("my-secret")?
    // ...
  }

  for node in kube.nodes().list()? {
    println!("Found node: {}", node.metadata.name);
  }
}

Status

This client is still very incomplete, so expect to file issues and PRs to unblock yourself if you actually take this crate as a dependency.

It has basic support for many common operations, namely the ones I've personally needed, but I'm not yet using this library in production, so it's not very high priority for me. That said, I will commit to discussing issues and reviewing PRs in a timely manner.

Commit count: 50

cargo fmt