ingress

package
v0.0.0-...-7d1f045 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

type Deployer interface {
	Deploy(ctx context.Context, tag string, re deploy.ReconcileEngine) (yc.BalancerResources, error)
	UndeployOldBG(ctx context.Context, tag string) error
}

type EngineBuilder

type EngineBuilder interface {
	Build(ctx context.Context, group *k8s.IngressGroup, settings *v1alpha1.IngressGroupSettings) (*reconcile2.IngressGroupEngine, error)
}

type GroupLoader

type GroupLoader interface {
	Load(context.Context, types.NamespacedName) (*k8s.IngressGroup, error)
}

type GroupReconciler

type GroupReconciler struct {
	Loader   GroupLoader
	Builder  EngineBuilder
	Deployer Deployer

	SecretsManager k8s.SecretManager

	StatusUpdater      *k8s.StatusUpdater
	FinalizerManager   *k8s.FinalizerManager
	GroupStatusManager *k8s.GroupStatusManager

	StatusResolver StatusResolver
	SettingsLoader SettingsLoader

	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

GroupReconciler reconciles an IngressGroup object

func (*GroupReconciler) Reconcile

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

func (*GroupReconciler) SetupWithManager

func (r *GroupReconciler) SetupWithManager(
	mgr ctrl.Manager,
	clientSet *kubernetes.Clientset,
	secretEventChan chan event.GenericEvent,
) error

SetupWithManager sets up the controller with the manager.

type SettingsLoader

type SettingsLoader interface {
	Load(ctx context.Context, g *k8s.IngressGroup) (*v1alpha1.IngressGroupSettings, error)
}

type StatusResolver

type StatusResolver interface {
	Resolve(*apploadbalancer.LoadBalancer) networking.IngressStatus
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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