controller

package
v0.0.0-...-05c4727 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDistributionController

func NewDistributionController(mgr ctrl.Manager, logger logr.Logger) error

SetupWithManager sets up the controller with the Manager.

func NewIngressController

func NewIngressController(mgr ctrl.Manager, ingressService string) error

Creates a new IngressController

Types

type DistributionReconciler

type DistributionReconciler struct {
	resolver.DistributionClassReader

	// Used to load the required certificate for the distribution's TLS
	// settings
	CertificateResolver resolver.CertificateResolver

	// List of providers supported
	Providers []provider.CDNProvider

	// The generic Logger interface for the reconciller
	Logger logr.Logger
	// contains filtered or unexported fields
}

func (*DistributionReconciler) Reconcile

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

Main function called when a reconciliation is required

This method's primary job is loading up the resources in question (the Distribution and associated DistributionClass or ClusterDistributionClass), and then kicking off either a reconciliation job or a deletion job.

type IngressReconciler

type IngressReconciler struct {
	client.Client

	// The current scheme we are working with
	Scheme *runtime.Scheme

	IngressService *client.ObjectKey
}

func (*IngressReconciler) Reconcile

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

The main reconciliation loop

Jump to

Keyboard shortcuts

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