Documentation ¶
Index ¶
- Constants
- func IsNodeSuitableAsTrafficProxy(node *corev1.Node) bool
- func IsPodSuitableAsIPTarget(pod *corev1.Pod) bool
- func PodConditionForReadinessGate(pod *api.Pod, conditionType api.PodConditionType) (int, *api.PodCondition)
- func PodHasReadinessGate(pod *api.Pod, conditionType api.PodConditionType) bool
- func PodReadinessGateConditionType(ingress *extensions.Ingress, backend *extensions.IngressBackend) api.PodConditionType
- type EndpointResolver
Constants ¶
const AnyLBTGReadyConditionType = api.PodConditionType("target-health.alb.ingress.k8s.aws/load-balancer-any-tg-ready")
a special readiness condition type that will mark pod as ready if any targetGroup have the pod as healthy. This is added to temporarily support Ingress/Backend with long names Please don't use this if your pod will be registered in multiple targetGroups. See https://github.com/kubernetes-sigs/aws-alb-ingress-controller/pull/1253
Variables ¶
This section is empty.
Functions ¶
func IsNodeSuitableAsTrafficProxy ¶ added in v1.1.6
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
IsPodSuitableAsIPTarget check whether pod is suitable as a TargetGroup's target (currently tested: are all pod's containers ready?).
func PodConditionForReadinessGate ¶ added in v1.1.8
func PodConditionForReadinessGate(pod *api.Pod, conditionType api.PodConditionType) (int, *api.PodCondition)
func PodHasReadinessGate ¶ added in v1.1.8
func PodHasReadinessGate(pod *api.Pod, conditionType api.PodConditionType) bool
PodHasReadinessGate returns true if the given pod has a readinessGate with the given conditionType
func PodReadinessGateConditionType ¶ added in v1.1.8
func PodReadinessGateConditionType(ingress *extensions.Ingress, backend *extensions.IngressBackend) api.PodConditionType
PodReadinessGateConditionType returns the PodConditionType that is associated with the given ingress and backend
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