def InCluster.config

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

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

256# The pod's service account, from KUBERNETES_SERVICE_HOST and _PORT
257# (client-go's InClusterConfig). An IPv6 host needs no brackets here.
258def InCluster.config(host: String, port: String, ns: String) -> Config:
259  Config{host, Url.port(port, 443), "", FromFile{InCluster.dir() ++ "/ca.crt"}, NoSrc{}, NoSrc{},
260    FromFile{InCluster.dir() ++ "/token"}, String.trim(ns), None{}}

Uses (8)

Used by (1)