Documentation
¶
Overview ¶
Package kube provides utilities for reading Kubernetes service account secrets.
It enables applications running in Kubernetes to access their namespace, service account token, and CA certificate from the standard mounted paths.
Index ¶
Constants ¶
View Source
const ( FileNamespace = "/var/run/secrets/kubernetes.io/serviceaccount/namespace" FileToken = "/var/run/secrets/kubernetes.io/serviceaccount/token" // #nosec G101 - standard K8s service account path FileCa = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" )
Variables ¶
This section is empty.
Functions ¶
func Certificate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.