hubble

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 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

View Source
var (
	ErrCertDataMissingInSecret = errors.New("required certificate data (ca.crt, tls.crt, or tls.key) not found in secret")
	ErrHubbleNotFound          = errors.New("cilium Hubble Relay service not found; disabling Cilium flow collection")
	ErrNoPortsAvailable        = errors.New("cilium Hubble Relay service has no ports; disabling Cilium flow collection")
)

Functions

func ConnectToHubbleRelay

func ConnectToHubbleRelay(ctx context.Context, logger *zap.Logger, hubbleAddress string, tlsConfig *tls.Config, disableALPN bool) (*grpc.ClientConn, error)

ConnectToHubbleRelay handles the connection logic for Hubble Relay.

func DiscoverCiliumHubbleRelay

func DiscoverCiliumHubbleRelay(ctx context.Context, ciliumNamespace string, clientset kubernetes.Interface) (*v1.Service, error)

DiscoverCiliumHubbleRelay uses a kubernetes clientset in order to discover the address of the hubble-relay service.

func GetAddressFromService

func GetAddressFromService(service *v1.Service) (string, error)

GetAddressFromService returns the address of the given service to connect a gRPC client to.

func GetTLSConfig

func GetTLSConfig(ctx context.Context, clientset kubernetes.Interface,
	logger *zap.Logger, secretName, namespace string) (*tls.Config, error)

GetTLSConfig reads TLS config to connect to Hubble from the given Secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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