def Api.ns_part
import bend-kube-runtime@0.2.0.0/src/core.bend as Coreimport Base
import bend-kube-runtime@0.2.0.0/src/http.bend as H
94def Api.ns_part(s: Scope, namespaced: Bool) -> String:
95 match s namespaced:
96 case InNs{ns} True{}:
97 "/namespaces/" ++ H.Http.encode(ns)
98 case _ _:
99 ""