Documentation
¶
Index ¶
- Variables
- func ConnectToHubbleRelay(ctx context.Context, logger *zap.Logger, hubbleAddress string, ...) (*grpc.ClientConn, error)
- func DiscoverCiliumHubbleRelay(ctx context.Context, ciliumNamespace string, clientset kubernetes.Interface) (*v1.Service, error)
- func GetAddressFromService(service *v1.Service) (string, error)
- func GetTLSConfig(ctx context.Context, clientset kubernetes.Interface, logger *zap.Logger, ...) (*tls.Config, error)
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 ¶
GetAddressFromService returns the address of the given service to connect a gRPC client to.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.