endpoints

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	client.Client

	EndpointSizeCallback func(deploymentName string, size int)

	ExcludePods map[string]struct{}
	// contains filtered or unexported fields
}

func NewManager

func NewManager(mgr ctrl.Manager) (*Manager, error)

func (*Manager) AwaitHostAddress added in v0.0.7

func (r *Manager) AwaitHostAddress(ctx context.Context, service, portName string) (string, error)

AwaitHostAddress returns the host address with the lowest number of in-flight requests. It will block until the host address becomes available or the context times out.

It returns a string in the format "host:port" or error on timeout

func (*Manager) GetAllHosts

func (r *Manager) GetAllHosts(service, portName string) []string

GetAllHosts retrieves the list of all hosts for a given service and port.

func (*Manager) Reconcile

func (r *Manager) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Manager) SetupWithManager

func (r *Manager) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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