View Source Bella: Kubernetes Controller Framework
Bella make it easy to create Kubernetes GenServers to watch cluster state.
installation
Installation
Bella can be installed by adding bella
to your list of dependencies in mix.exs
:
def deps do
[
{:bella, "~> 0.2.2"}
]
end
telemetry
Telemetry
Bella uses the telemetry
library to emit event metrics.
[
[:bella, :watcher, :genserver, :down],
[:bella, :watcher, :chunk, :finished],
[:bella, :watcher, :chunk, :received],
[:bella, :watcher, :watch, :timedout],
[:bella, :watcher, :watch, :failed],
[:bella, :watcher, :watch, :down],
[:bella, :watcher, :watch, :finished],
[:bella, :watcher, :watch, :succeeded],
[:bella, :watcher, :watch, :started],
[:bella, :watcher, :fetch, :succeeded],
[:bella, :watcher, :fetch, :failed],
[:bella, :watcher, :first_resource, :failed],
[:bella, :watcher, :first_resource, :succeeded],
[:bella, :watcher, :first_resource, :finished],
[:bella, :watcher, :first_resource, :started],
[:bella, :watcher, :initialized]
]
testing
Testing
mix test