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/cilium/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.2.1
func SetCommonFields(ev *tetragon.GetEventsResponse)
SetCommonFields set fields that are common in all the events.
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.
Click to show internal directories.
Click to hide internal directories.