3 unstable releases
new 0.2.1 | Feb 21, 2025 |
---|---|
0.2.0 | Feb 20, 2025 |
0.1.0 | Feb 13, 2025 |
#48 in #operator
241 downloads per month
29KB
649 lines
simple-kube-controller
The simple-kube-controller library streamlines the process of developing custom Kubernetes controllers.
Getting started
To begin using simple-kube-controller, add the following dependency to your Cargo.toml
file:
simple-kube-controller = "0"
Overview
Kubernetes controllers are responsible for monitoring resource events such as creation, updates, and deletions. The simple-kube-controller leverages a reconciler to handle these events efficiently.
For a practical demonstration, refer to the custom reconciler example.
DAG reconciler
By default, the dag
feature is enabled, allowing you to utilize the DagReconciler
. A Directed Acyclic Graph (DAG) reconciler organizes tasks into groups that are executed asynchronously upon receiving an event. Each group of tasks is initiated only after the previous group has successfully completed, ensuring a sequential and controlled execution flow.
For more details, check out the DAG reconciler example.
Build
To build the project, run the following command:
cargo build
Test
To execute tests, use the command:
cargo test
Dependencies
~49–78MB
~1M SLoC