View Source Bonny.Server.Reconciler behaviour (bonny v1.4.0)
Creates a stream that, when run, streams a list of resources and calls reconcile/1
on the given controller for each resource in the stream in parallel.
Example
reconciliation_stream = Bonny.Server.Reconciler.get_stream(controller)
Task.async(fn -> Stream.run(reconciliation_stream) end)
Summary
Functions
Prepares a stream wich maps each resoruce returned by the reconcile_operation
to
a function reconcile/1
on the given module
. If given, the stream_opts are passed
to K8s.Client.stream/3
Callbacks
Functions
@spec get_raw_stream(K8s.Conn.t(), K8s.Operation.t(), keyword()) :: Enumerable.t()
@spec get_stream(module(), K8s.Conn.t(), K8s.Operation.t(), keyword()) :: Enumerable.t(Bonny.Resource.t())
Prepares a stream wich maps each resoruce returned by the reconcile_operation
to
a function reconcile/1
on the given module
. If given, the stream_opts are passed
to K8s.Client.stream/3