hubble

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

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