Bella.Controller behaviour (bella v0.0.1) View Source

Bella.Controller defines controller behaviours and generates boilerplate for generating Kubernetes manifests.

A custom controller is a controller that users can deploy and update on a running cluster, independently of the cluster’s own lifecycle. Custom controllers can work with any kind of resource, but they are especially effective when combined with custom resources. The Operator pattern is one example of such a combination. It allows developers to encode domain knowledge for specific applications into an extension of the Kubernetes API.

Controllers allow for simple add, modify, delete, and reconcile handling of custom resources in the Kubernetes API.

Link to this section Summary

Link to this section Callbacks

Specs

add(map()) :: :ok | :error

Specs

delete(map()) :: :ok | :error

Specs

modify(map()) :: :ok | :error

Specs

operation() :: K8s.Operation.t()

Specs

reconcile(map()) :: :ok | :error