node

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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