def Kube.configured_all

bend-kube-runtime@0.2.0.0 · src/kube.bend:99

import bend-kube-runtime@0.2.0.0/src/kube.bend as Kube
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
import bend-kube-runtime@0.2.0.0/src/config.bend as K
import bend-kube-runtime@0.2.0.0/src/queue.bend as Q
import bend-kube-runtime@0.2.0.0/src/runtime.bend as R

99def Kube.configured_all(~rec: U32 -> J.Json -> K.Config -> IO(Q.Action),
100  c: Result<&2, &2, String, K.Config>, cs: List<&2, R.Ctrl>, o: Opts) -> IO(Unit):
101  match c:
102    case Done{cfg}:
103      IO.bind(Chan(Socket), Unit, Kube.pool(),
104        p => Kube.start_all(~rec, K.Config.with_pool(cfg, p), cs, o))
105    case Fail{e}:
106      IO.die(Unit, 1, "bend-kube: no config: " ++ e)

Uses (19)

Used by (1)