k8s

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexIP = "byIP"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(kubeConfigPath string) (*rest.Config, error)

func MetadataDecoratorProvider added in v1.4.0

func MetadataDecoratorProvider(ctx context.Context, cfg *transform.KubernetesDecorator) (pipe.MiddleFunc[[]*ebpf.Record, []*ebpf.Record], error)

Types

type Info

type Info struct {
	// Informers need that internal object is an ObjectMeta instance
	metav1.ObjectMeta
	Type     string
	Owner    Owner
	HostName string
	HostIP   string
	// contains filtered or unexported fields
}

Info contains precollected metadata for Pods, Nodes and Services. Not all the fields are populated for all the above types. To save memory, we just keep in memory the necessary data for each Type. For more information about which fields are set for each type, please refer to the instantiation function of the respective informers.

type NetworkInformers

type NetworkInformers struct {
	// contains filtered or unexported fields
}

TODO: merge this data structure with the appo11y kubernetes informers

func (*NetworkInformers) GetInfo

func (k *NetworkInformers) GetInfo(ip string) (*Info, bool)

func (*NetworkInformers) InitFromConfig

func (k *NetworkInformers) InitFromConfig(ctx context.Context, kubeConfigPath string, syncTimeout time.Duration) error

type Owner

type Owner struct {
	Type string
	Name string
}

Directories

Path Synopsis
This implementation is a derivation of the code in https://github.com/netobserv/netobserv-ebpf-agent/tree/release-1.4
This implementation is a derivation of the code in https://github.com/netobserv/netobserv-ebpf-agent/tree/release-1.4

Jump to

Keyboard shortcuts

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