Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceAccountPath = "/var/run/secrets/kubernetes.io/serviceaccount" ServiceAccountTokenPath = ServiceAccountPath + "/token" )
Kubernetes constants
Variables ¶
This section is empty.
Functions ¶
func GetBearerToken ¶
GetBearerToken reads the serviceaccount token
func GetCertificateAuthority ¶
GetCertificateAuthority loads the issuing certificate authority
func GetCertificates ¶
func GetCertificates(certFilePath, keyFilePath string) ([]tls.Certificate, error)
GetCertificates loads the certificate and the private key
func IsServiceAccountTokenAvailable ¶
func IsServiceAccountTokenAvailable() bool
IsServiceAccountTokenAvailable returns if a service account token is available on disk
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.