def Finalizer.run

bend-kube-runtime@0.2.0.0 · src/helpers.bend:61

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/core.bend as C
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/finalizer.bend as F

61# Reconciles o under the finalizer called name (kube-runtime's finalizer):
62# apply while it lives, cleanup once it is deleted. Both must be
63# idempotent; a cleanup that answers Retry keeps the object alive.
64def Finalizer.run(~apply: J.Json -> K.Config -> IO(Q.Action),
65  ~cleanup: J.Json -> K.Config -> IO(Q.Action), +cfg: K.Config, +api: C.Api, name: String,
66  +o: J.Json) -> IO(Q.Action):
67  Fin.run.go(~apply, ~cleanup, cfg, api, o, F.Fin.state(o, name))

Uses (8)

Used by (0)

No other definition uses this definition.