installdefaults

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

View Source
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, atenet-egress and ate-controller 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"
	ControllerServiceAccount = "ate-controller"

	// 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

func ActorJWTIssuer(namespace string) string

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

func AteletSPIFFEID(namespace string) string

AteletSPIFFEID returns the SPIFFE ID atelet presents when it runs in namespace.

func ControllerSPIFFEID added in v0.5.0

func ControllerSPIFFEID(namespace string) string

ControllerSPIFFEID returns the SPIFFE ID ate-controller presents when it runs in namespace.

func EgressSPIFFEID

func EgressSPIFFEID(namespace string) string

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

func RouterSPIFFEID(namespace string) string

RouterSPIFFEID returns the SPIFFE ID atenet-router presents when it runs in namespace.

func SPIFFEID

func SPIFFEID(namespace, serviceAccount string) string

SPIFFEID returns the SPIFFE ID that Pod certificates for serviceAccount in namespace carry. Peers authenticate by comparing against this exact string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL