backend

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNodeSuitableAsTrafficProxy added in v1.1.6

func IsNodeSuitableAsTrafficProxy(node *corev1.Node) bool

IsNodeSuitableAsTrafficProxy check whether node is suitable as a traffic proxy. mimic the logic of serviceController: https://github.com/kubernetes/kubernetes/blob/b6b494b4484b51df8dc6b692fab234573da30ab4/pkg/controller/service/controller.go#L605

func IsPodSuitableAsIPTarget added in v1.1.7

func IsPodSuitableAsIPTarget(pod *corev1.Pod) bool

IsPodSuitableAsIPTarget check whether pod is suitable as a TargetGroup's target (currently tested: are all pod's containers ready?).

Types

type EndpointResolver

type EndpointResolver interface {
	Resolve(*extensions.Ingress, *extensions.IngressBackend, string) ([]*elbv2.TargetDescription, error)
	ReverseResolve(*extensions.Ingress, *extensions.IngressBackend, []*elbv2.TargetDescription) ([]*corev1.Pod, error)
}

EndpointResolver resolves the endpoints for specific ingress backend

func NewEndpointResolver

func NewEndpointResolver(store store.Storer, cloud aws.CloudAPI) EndpointResolver

NewEndpointResolver constructs a new EndpointResolver

Jump to

Keyboard shortcuts

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