node

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeNameForExport

func GetNodeNameForExport() string

GetNodeNameForExport returns node name string for JSON export. It uses NODE_NAME env variable by default, which is also used by k8s watcher to watch for local pods:

https://github.com/go-faster/tetragon/blob/a7be620c9fecdc2b693e3633506aca35d46cd3b2/pkg/grpc/watcher.go#L32

Set HUBBLE_NODE_NAME to override the node_name field for JSON export.

func SetCommonFields added in v1.3.2

func SetCommonFields(ev *tetragon.GetEventsResponse)

SetCommonFields set fields that are common in all the events.

func SetNodeName added in v1.3.2

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