node

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeName added in v1.5.0

func GetNodeName() string

GetNodeName 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 SetNodeLabels added in v1.5.0

func SetNodeLabels(labels map[string]string)

func SetNodeName added in v1.2.1

func SetNodeName()

SetNodeName initializes the nodeName variable. It's defined separately from init() so that it can be called from unit tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL