Documentation ¶
Overview ¶
Package metadata implements metadata related utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsKubernetes ¶
func IsKubernetes() bool
IsKubernetes return true if running on Kubernetes. It uses the environment variable KUBERNETES_SERVICE_HOST to decide if we we are running Kubernetes.
func KubernetesNamespace ¶
func KubernetesNamespace() string
KubernetesNamespace returns the Kubernetes namespace. It returns an empty string if there is an error in retrieving the namespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.