def Api.ns_part

bend-kube-runtime@0.2.0.0 · src/core.bend:94

import bend-kube-runtime@0.2.0.0/src/core.bend as Core
import 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      ""

Uses (5)

Used by (1)