def Ctl.owner_keys
import bend-kube-runtime@0.2.0.0/src/runtime.bend as Runtimeimport Base
import bend-kube-runtime@0.2.0.0/src/watcher.bend as W
359# The keys an owned watcher's outputs trigger: the owners of the kind
360# every changed object names (kube-runtime's Controller::owns), deletions
361# included.
362def Ctl.owner_keys(outs: List<&2, W.Out>, +kind: String) -> List<&2, String>:
363 match outs:
364 case Nil{}:
365 Nil{}
366 case Con{o, t}:
367 Ctl.owner_keys.put(Ctl.out_obj(o), kind, Ctl.owner_keys(t, kind))