def Ctl.self_keys

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

import bend-kube-runtime@0.2.0.0/src/runtime.bend as Runtime
import Base
import bend-kube-runtime@0.2.0.0/src/core.bend as C
import bend-kube-runtime@0.2.0.0/src/watcher.bend as W

310# The keys a primary watcher's outputs trigger: every object it applies.
311# Deletions trigger nothing; finalizers are how a reconciler sees them.
312def Ctl.self_keys(outs: List<&2, W.Out>) -> List<&2, String>:
313  match outs:
314    case Nil{}:
315      Nil{}
316    case Con{W.OApply{+o}, t}:
317      C.Obj.key(o) <> Ctl.self_keys(t)
318    case Con{W.OInitApply{+o}, t}:
319      C.Obj.key(o) <> Ctl.self_keys(t)
320    case Con{o, t}:
321      Ctl.self_keys(t)

Uses (4)

Used by (1)