Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

phoracek/kubewatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubewatch

Build Status crates.io docs.rs

This library serves as a base component for Kubernetes event watching. It allows user to specify which resource should be monitored. Deserialization of events is done via Serde, thanks to it it is possible to use both dynamic on-the-fly deserialization and also beforehand generated Deserializer for specific structure.

Documentation

Example

extern crate kubewatch;
extern crate serde_json;

use kubewatch::Events;

fn main() {
    let cluster = kubewatch::Cluster::new("http://localhost:8080").unwrap();
    let events = cluster.events::<serde_json::Value>("api/v1/pods").unwrap();
    for event in events.into_iter() {
        println!("{:#?}", event);
    }
}

Check for more in examples/.

TODO

  • namespaces
  • TLS/SSL
  • filtering

About

Kubernetes event monitor Rust crate

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages