Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listeners ¶
Listeners is a slice of Listener pointers
func NewCurrentListeners ¶
func NewCurrentListeners(o *NewCurrentListenersOptions) (Listeners, error)
NewCurrentListeners returns a new listeners.Listeners based on an elbv2.Listeners.
func NewDesiredListeners ¶
func NewDesiredListeners(o *NewDesiredListenersOptions) (Listeners, error)
func (Listeners) Reconcile ¶
func (ls Listeners) Reconcile(rOpts *ReconcileOptions) (Listeners, error)
Reconcile kicks off the state synchronization for every Listener in this Listeners instances. TODO: function has changed a lot, test
func (Listeners) StripCurrentState ¶
func (ls Listeners) StripCurrentState()
StripCurrentState takes all listeners and sets their CurrentListener to nil. Most commonly used when an ELB must be re-created fully. When the deletion of the ELB occurs, the listeners attached are also deleted, thus the ingress controller must know they no longer exist.
Additionally, since Rules are also removed its Listener is, this also calles StripDesiredState on the Rules attached to each listener.
func (Listeners) StripDesiredState ¶
func (ls Listeners) StripDesiredState()
StripDesiredState removes the DesiredListener from all Listeners in the slice.
type NewCurrentListenersOptions ¶
type NewCurrentListenersOptions struct { TargetGroups *targetgroups.TargetGroups Listeners []*elbv2.Listener Logger *log.Logger }
type NewDesiredListenersOptions ¶
type NewDesiredListenersOptions struct { Ingress *extensions.Ingress Listeners Listeners Annotations *annotations.Annotations Logger *log.Logger Priority int }
type ReconcileOptions ¶
type ReconcileOptions struct { Eventf func(string, string, string, ...interface{}) LoadBalancerArn *string TargetGroups targetgroups.TargetGroups }