def Config.infer.kc

bend-kube-runtime@0.2.0.0 · src/client.bend:678

import bend-kube-runtime@0.2.0.0/src/client.bend as Client
import Base
import bend-kube-runtime@0.2.0.0/src/config.bend as K

678def Config.infer.kc(r: Res(String)) -> IO(Result<&2, &2, String, K.Config>):
679  match r:
680    case Done{path}:
681      Config.from_kubeconfig(path, "")
682    case Fail{e}:
683      IO.bind(Res(String), Result<&2, &2, String, K.Config>, IO.get_env("KUBERNETES_SERVICE_HOST"),
684        Config.infer.pod)

Uses (9)

Used by (1)