alb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Type holds this controller type
	Type = "ALB"
)

Variables

This section is empty.

Functions

func SetDefaultVerifyWeight added in v1.0.0

func SetDefaultVerifyWeight(b bool)

SetDefaultVerifyWeight sets the default setWeight verification when instantiating the reconciler

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler holds required fields to reconcile ALB Ingress resources

func NewReconciler

func NewReconciler(cfg ReconcilerConfig) (*Reconciler, error)

NewReconciler returns a reconciler struct that brings the ALB Ingress into the desired state

func (*Reconciler) SetWeight added in v1.0.0

func (r *Reconciler) SetWeight(desiredWeight int32) error

SetWeight modifies ALB Ingress resources to reach desired state

func (*Reconciler) Type

func (r *Reconciler) Type() string

Type indicates this reconciler is an ALB ingress reconciler

func (*Reconciler) UpdateHash added in v1.0.0

func (r *Reconciler) UpdateHash(canaryHash, stableHash string) error

UpdateHash informs a traffic routing reconciler about new canary/stable pod hashes

func (*Reconciler) VerifyWeight added in v1.0.0

func (r *Reconciler) VerifyWeight(desiredWeight int32) (bool, error)

type ReconcilerConfig

type ReconcilerConfig struct {
	Rollout        *v1alpha1.Rollout
	Client         kubernetes.Interface
	Recorder       record.EventRecorder
	ControllerKind schema.GroupVersionKind
	IngressLister  extensionslisters.IngressLister
	VerifyWeight   *bool
}

ReconcilerConfig describes static configuration data for the ALB Ingress reconciler

Jump to

Keyboard shortcuts

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