def Fin.removed
bend-kube-runtime@0.2.0.0 · src/helpers.bend:30
import bend-kube-runtime@0.2.0.0/src/helpers.bend as Helpers
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
import bend-kube-runtime@0.2.0.0/src/client.bend as Cl
import bend-kube-runtime@0.2.0.0/src/queue.bend as Q
import bend-kube-runtime@0.2.0.0/src/log.bend as L
30def Fin.removed(a: Q.Action, r: Result<&2, &2, Cl.KErr, J.Json>) -> IO(Q.Action):
31 match r:
32 case Done{o}:
33 IO.pure(Q.Action, a)
34 case Fail{+e}:
35 IO.bind(Unit, Q.Action, L.Log.warn("removing finalizer failed", [L.Log.kv("error", Cl.KErr.show(e))]),
36 u => IO.pure(Q.Action, Q.Retry{Cl.KErr.show(e)}))