def Kube.config

bend-kube-runtime@0.2.0.0 · src/config.bend:245

import bend-kube-runtime@0.2.0.0/src/config.bend as Config
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J

245# The Config a kubeconfig (as JSON) names for a context ("" for its
246# current-context), or why it cannot.
247def Kube.config(+kc: J.Json, ctx: String) -> Result<&2, &2, String, Config>:
248  Kube.config.ctx(kc, Kube.config.pick(ctx, J.Json.str_or(J.Json.get(kc, "current-context"), "")))

Uses (8)

Used by (1)