Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubernetesNodeName ¶ added in v1.4.1
func GetKubernetesNodeName() string
GetKubernetesNodeName returns node name string for the given node in Kubernetes. It uses the NODE_NAME env variable by default, and falls back to HUBBLE_NODE_NAME if the former is missing. If both are missing, it will use the host name reported by the kernel. This value is used when watching for pods running on the node in Kubernetes.
NOTE: This is different from the Export equivalent for cases where nodes in kubernetes are named different from the desired node name in the JSON export.
func GetNodeNameForExport ¶
func GetNodeNameForExport() string
GetNodeNameForExport returns node name string for JSON export. It uses the HUBBLE_NODE_NAME env variable by default, and falls back to NODE_NAME if the former is missing. If both are missing, it will use the host name reported by the kernel
func SetCommonFields ¶ added in v1.2.1
func SetCommonFields(ev *tetragon.GetEventsResponse)
SetCommonFields set fields that are common in all the events.
func SetExportNodeName ¶ added in v1.4.1
func SetExportNodeName()
SetExportNodeName initializes the exportNodeName variable. It's defined separately from init() so that it can be called from unit tests.
func SetKubernetesNodeName ¶ added in v1.4.1
func SetKubernetesNodeName()
SetKubernetesNodeName initializes the kubernetesNodeName variable. It's defined separately from init() so that it can be called from unit tests.
Types ¶
This section is empty.