def Kube.named.if
import bend-kube-runtime@0.2.0.0/src/config.bend as Configimport Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
119def Kube.named.if(+x: J.Json, +field: String, rest: J.Json, hit: Bool) -> J.Json:
120 match hit:
121 case True{}:
122 J.Json.get(x, field)
123 case False{}:
124 rest