def Config.in_cluster.port

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

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

643def Config.in_cluster.port(host: String, port: Res(String)) -> IO(Result<&2, &2, String, K.Config>):
644  match port:
645    case Done{p}:
646      IO.bind(Res(String), Result<&2, &2, String, K.Config>,
647        Fs.read(K.InCluster.dir() ++ "/namespace"), n => Config.in_cluster.ns(host, p, n))
648    case Fail{e}:
649      IO.pure(Result<&2, &2, String, K.Config>, Fail{"KUBERNETES_SERVICE_PORT is not set"})

Uses (11)

Used by (1)