def Config.in_cluster.host
bend-kube-runtime@0.2.0.0 · src/client.bend:651
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
651def Config.in_cluster.host(host: Res(String)) -> IO(Result<&2, &2, String, K.Config>):
652 match host:
653 case Done{h}:
654 IO.bind(Res(String), Result<&2, &2, String, K.Config>,
655 IO.get_env("KUBERNETES_SERVICE_PORT"), p => Config.in_cluster.port(h, p))
656 case Fail{e}:
657 IO.pure(Result<&2, &2, String, K.Config>, Fail{"not in a cluster"})