Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InDocker ¶
func InDocker() bool
InDocker detects if the service is running under docker environment.
func InIstio ¶
func InIstio() bool
InIstio detects if the service is running under istio injected.
IMPORTANT ¶
To make this detector work properly, you must mount a DownwordAPI volume to your container/pod. See also: https://kubernetes.io/en/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.