Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ServiceAccountTokenFilepath is the default path to the service account token file in Kubernetes
ServiceAccountTokenFilepath = "/var/run/secrets/kubernetes.io/serviceaccount/token"
)
Variables ¶
This section is empty.
Functions ¶
func GetCert ¶
GetCert creates a new x509.CertPool and adds the system's default CA certificates and the CA certificate from the specified file.
func IsRunningInCluster ¶
func IsRunningInCluster() bool
IsRunningInCluster checks if the application is running inside a Kubernetes cluster. It does this by checking for the existence of the service account token file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.