Documentation
¶
Overview ¶
Package installdefaults holds the default namespace and Service names that match the canonical install layout in manifests/ate-install/. Binaries use these as flag defaults; deployments that diverge from the canonical layout pass actual values via the corresponding flags.
Index ¶
Constants ¶
const ( // SystemNamespace is the namespace where substrate's control-plane // components and the atelet DaemonSet run. SystemNamespace = "ate-system" // APIServiceName is the Service name of ate-api-server. APIServiceName = "api" // RouterServiceName is the Service name of atenet-router. RouterServiceName = "atenet-router" // IDPServiceName is the Service name of ate-idp-server. IDPServiceName = "idp" // ClientServiceAccount is the ServiceAccount an out-of-cluster client mints // its ateapi bearer token from. ClientServiceAccount = "ate-client" // AteletTrustDomain and the ServiceAccount constants are the trust-domain // and service-account segments of the SPIFFE IDs that atelet, // atenet-router and atenet-egress Pod certificates carry, as minted by the // podidentity signer (cmd/podcertcontroller/internal/podidentitysigner). // The namespace segment is the namespace they run in, which callers // resolve themselves rather than assume. AteletTrustDomain = "cluster.local" AteletServiceAccount = "atelet" RouterServiceAccount = "atenet-router" EgressServiceAccount = "atenet-egress" // PodNamespaceEnv is the conventional env var name for the namespace // a pod is running in, exposed via Kubernetes' downward API. PodNamespaceEnv = "POD_NAMESPACE" )
Variables ¶
This section is empty.
Functions ¶
func ActorJWTIssuer ¶ added in v0.3.0
ActorJWTIssuer returns the actor JWT issuer for an install in namespace that does not configure one: the in-cluster URL of its ate-idp-server Service. Relying parties bind trust to this exact string.
func AteletSPIFFEID ¶
AteletSPIFFEID returns the SPIFFE ID atelet presents when it runs in namespace.
func EgressSPIFFEID ¶
EgressSPIFFEID returns the SPIFFE ID atenet-egress presents when it runs in namespace. The credential provider verifies it on the injector connection.
func NamespaceFromPodEnv ¶
func NamespaceFromPodEnv() string
NamespaceFromPodEnv returns the namespace from the PodNamespaceEnv env var when set (typically populated via Kubernetes' downward API), and falls back to SystemNamespace for non-k8s invocations (tests, local dev).
func RouterSPIFFEID ¶
RouterSPIFFEID returns the SPIFFE ID atenet-router presents when it runs in namespace.
Types ¶
This section is empty.